kona B
kona B

Reputation: 105

summernote - get a fixed text area

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,
});

Upvotes: 5

Views: 6920

Answers (2)

Jesus Polanco
Jesus Polanco

Reputation: 11

This worked for me...

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

Upvotes: 1

Ron van Asseldonk
Ron van Asseldonk

Reputation: 1345

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!

Upvotes: 2

Related Questions