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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -