javascript - CKEditor break <div> -


ckeditor works great. there minor thing improve

we have message system uses ckeditor. original (old) text in vertical blue line. see screenshot:

enter image description here

i break <div>.

up found no way break it.

in case return key should break <div>.

you can config enter key following modes:

  • enter_p – new <p> paragraphs created;
  • enter_br – lines broken <br> elements;
  • enter_div – new <div> blocks created.

so in case, break div:

ckeditor.replace( 'textarea_id', {     entermode: ckeditor.enter_div }); 

here docs enter_br


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -