我正在尝试在我的应用程序中使用summernote
编辑器。我使用了height/minheight、maxheight这些属性来固定编辑器的大小,并防止其被调整大小。
以下是我正在使用的代码:
$('#content').summernote({
height: 400,
minHeight: 400,
maxHeight: 600,
});
我正在尝试在我的应用程序中使用summernote
编辑器。我使用了height/minheight、maxheight这些属性来固定编辑器的大小,并防止其被调整大小。
以下是我正在使用的代码:
$('#content').summernote({
height: 400,
minHeight: 400,
maxHeight: 600,
});
Summernote有一个disableResizeEditor
选项。如果将其设置为true,则无法调整编辑器的大小。结合高度属性使用,可以使编辑器具有固定的高度。
更多信息请参见:https://searchcode.com/codesearch/view/95928611/
希望这可以帮助您!
这对我有用...
.note-editable, .note-code{
height: 350px; /* custom size */
min-height: 350px; /* custom size */
max-height: 350px !important; /* custom size */
}