summernote - 获取固定文本区域

时间:2015-06-05 05:32:38

标签: summernote

我正在尝试在我的应用程序中使用summernote编辑器。我使用高度/ minheight,maxheigh我想修改编辑器而不允许它可以调整大小。

以下是我正在处理的代码:

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

2 个答案:

答案 0 :(得分:2)

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

了解更多信息:https://searchcode.com/codesearch/view/95928611/

我希望这有帮助!

答案 1 :(得分:0)

这对我有用...

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