How can I customize Summernote text editor width?
Asked Answered
N

2

5

Now I am using Summernote text editor. It is so easy and customizable. But I want to customize width. Example:

$("#editor").summernote({
   'width':200px,

});

Above code is not effect. How can I do it?

Nipissing answered 6/7, 2014 at 17:2 Comment(0)
N
11

you can use width like below.

$('.editor').summernote({
  width: 150,   //don't use px
});
Nakia answered 6/7, 2014 at 17:10 Comment(1)
This doesn't work for me, using the lite version of summernote-0.8.18-dist.zip .Centric
G
2

For me it helped to wrap editor with another div with style

<div style="width: 80%;">
Gregale answered 8/6, 2019 at 9:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.