2017-07-05 21 views
0

私はsummernoteを使用し、それはcodeviewです。私の問題は、文字列が長くなると無限になるということです。私はそれを包み込みたいと思います。だから私は水平にスクロールする必要はありません。Summernote codeview text overflow wrap

クローズはありますか?

ここに私の開始コードがあります。

var summernote = $('#description').summernote({ 
     height: 1000,     // set editor height 
     minHeight: null,    // set minimum height of editor 
     maxHeight: null,    // set maximum height of editor 
     maxWidth: 100,    // set maximum width of editor 
     toolbar: [ 
      ['style', ['style']], 
      ['font', ['bold', 'italic', 'underline', 'clear']], 
      // ['font', ['bold', 'italic', 'underline', 'strikethrough', 'superscript', 'subscript', 'clear']], 
      ['color', ['color']], 
      ['para', ['ul', 'ol', 'paragraph']], 
      ['insert', ['link', 'picture', 'hr']], 
      ['view', ['fullscreen', 'codeview']], // remove codeview button 
      ['help', ['help']] 
     ], 
     codemirror: { 
      mode: 'text/html', 
      htmlMode: true, 
      lineNumbers: true, 
      theme: 'monokai' 
     }, 
     callbacks: { 
      onInit: function() { 
      console.log('Summernote is launched'); 
      $(this).summernote('codeview.activate'); 
      $('#title').focus(); 
      } 
     } 
    }); 

答えて

0

lineNumbers後

lineWrapping: true, 

追加:私

ための真の、 作品
関連する問題