Developer forum

Forum » CMS - Standard features » CKEditor 4 styles are removed after save

CKEditor 4 styles are removed after save

Peter Leleulya
Reply

Hi guys!

I have a question about the CKEditor 4 usage in Dynamicweb.
In the Dynamicweb CMS I've enabled the "Styles" option for my Editor, so the customer has some extra options for predefined styles.
I've added a styleSet (just one style for now) as described in https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-stylesSet.
The editor DOES show the style list and when selecting the style the style DOES get active and you DO see the result you want.

But when you SAVE the page, SAVE AND CLOSE the page or SHOW SOURCE on the editor the style disapears!

So you think you've added the style, but on save it's gone with the wind ...

Does anyone know why this happens, how to fix this or how to work around?

For an example of what happens, see the attached MP4 file.
Or download it (before 4 weeks after 16-8-2018) from https://we.tl/hhM6ESIeRi.

 

with kind regards,

Peter Leleulya


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Peter,

It might be another CK option to remove inline styling.

It's a feature :)

I know it gave me a lot of headache in the past as well.

The Advanced version of the editor (included in DW) includes the option to keep inline styling.

Might not be the same problem but I think it worth a shot.

Adrian

 

You must be logged in to post in the forum