javascript - CKEditor 4 in read only mode - removing buttons removes formatting -


i use ckeditor allow users create rich document want redisplay inside ckeditor instance other users.

i want display content make control read don't want toolbars showing.

if use removebuttons or of other methods remove these disabled toolbars lose formatting associated buttons. eg. if remove underline button lose underline formatting in content.

is there way hide these buttons without losing formatting in content?

that standard ck behaviour stated in acf documentation. when don't set allowed content ck binds toolbars in editor, removing buttons make acf strip html created such buttons.

the solution is, in read-only editors, set ckeditor.config.allowedcontent allow tags you'll displaying.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -