[CKEditor] Custom Styles

[CKEditor] Custom Styles

  
Forge Component
(15)
Published on 28 Nov (2 weeks ago) by André Ramos
15 votes
Published on 28 Nov (2 weeks ago) by André Ramos

Did anyone succeed in adding custom style classes without changing the style.js file?

I've tried the CKEditor.config and CKEditor.editorConfig without success. 

Best regards

I'm having the same issue

This link suggests to change the config.js file:

https://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div

'

To allow style tag (<style type="text/css">...</style>):

config.extraAllowedContent = 'style';

'

But I'm looking to just use the Config input parameter to allow the style tag in the HTML.

Because I don't want to change the JavaScript resource files.

Any suggestions?

Kind regards,

Art

Hi all,

Did you clear cached files from browser before test it?

Regards,