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

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -