Jump to content

Editing CKEditor config file - need help


Recommended Posts

Hi, I wanted to add headings to my board. Managed to add plugin to CKEditor (https://ckeditor.com/cke4/addon/format).

Problem is with configuration. I added according to documentation (https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-format_tags) line in CKEditor config.js but it doesn't seem to work. 
image.png.917cae4dfdfe25331795f90d87adefed.png

It still shows all headings (h1, pre, div, h5,h6 etc). 

I think it might be some programming issue on my end, wrong implementation etc. Can someone help me with this code? Thanks! 
 

Link to comment
Share on other sites

You have your configuration element outside the editorConfig function.

Do this instead...

Between...

a.removeDialogTabs="link:advanced"

and..

};

Add...

;a.format_tags="p;h2;h3;h4"

Then you get in to the fun and games of ensuring that your browser pulls down the updated file...Chrome responds nicely to a Ctrl+F5 (screenshot below is Chrome) but Firefox is a bit of a b***h in this area. Google is going to be your friend there.

Note: this file isn't served from IPS's cached data so running the support ool in the ACP to force a refresh is a fruitless task.

image.png.d03dfa09f26e177edb6ea979f997b8f8.png

Note: this file may or may not be overwritten with IPS upgrades, by the way. Possible that a reset of the editor configuration might even reset it - not sure, not tested.

Edited by Nathan Explosion
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...