Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

summernote - get a fixed text area

Tags:

summernote

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,
});
like image 446
kona B Avatar asked Oct 31 '22 02:10

kona B


2 Answers

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!

like image 173
Ron van Asseldonk Avatar answered Jan 04 '23 14:01

Ron van Asseldonk


This worked for me...

.note-editable, .note-code{
    height: 350px; /* custom size */
    min-height: 350px; /* custom size */
    max-height: 350px !important; /* custom size */
}
like image 36
Jesus Polanco Avatar answered Jan 04 '23 15:01

Jesus Polanco