Summernote - 获取固定文本区域

5

我正在尝试在我的应用程序中使用summernote编辑器。我使用了height/minheight、maxheight这些属性来固定编辑器的大小,并防止其被调整大小。

以下是我正在使用的代码:

$('#content').summernote({
  height: 400,
  minHeight: 400,              
  maxHeight: 600,
});
2个回答

2

Summernote有一个disableResizeEditor选项。如果将其设置为true,则无法调整编辑器的大小。结合高度属性使用,可以使编辑器具有固定的高度。

更多信息请参见:https://searchcode.com/codesearch/view/95928611/

希望这可以帮助您!


很高兴能够帮助! - Ron van Asseldonk

1

这对我有用...

.note-editable, .note-code{
    height: 350px; /* custom size */
    min-height: 350px; /* custom size */
    max-height: 350px !important; /* custom size */
}

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接