[CKEditor] Custom Styles

[CKEditor] Custom Styles

  
Forge Component
(15)
Published on 2017-02-19 by Carlos Henriques
15 votes
Published on 2017-02-19 by Carlos Henriques

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,