How can I customize Summernote text editor width?

Wai Yan picture Wai Yan · Jul 6, 2014 · Viewed 11.9k times · Source

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?

Answer

ashish.negi picture ashish.negi · Jul 6, 2014

you can use width like below.

$('.editor').summernote({
  width: 150,   //don't use px
});