summernote - get a fixed text area

6.6k views Asked by At

I am trying to use summernote editor in my application. I used height/minheight, maxheigh where I want to fix the editor and not allow it to be resizable.

Here is the code that I'm working on:

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

There are 2 answers

0
Jesus Polanco On

This worked for me...

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

Summernote has the disableResizeEditoroption. If you set this to true, you won't be able to resize the editor. This in combination with the height property gives the editor a fixed height.

For more info: https://searchcode.com/codesearch/view/95928611/

I hope this helps!