I am new to CKEditor and so far the program works great. I have an issue that I have been working on for weeks to solve and I can't seem to find the solution anywhere.
I want to leave the default CKEditor 4 settings intact and I want to add something to the config.js file that will exclude h1, h2, and h3 tags from being allowed in the editor.
I tried messing with allowedContent, extraAllowedContent, CKEDITOR.filter, and several other configurations but I couldn't figure out how to get the results that I wanted.
Any help would be greatly appreciated. Thank You.
I've searched Google, the
I've searched Google, the CKEditor documentation, and CKEditor Forum, but I'm still getting trouble.
Headers are allowed because
Headers are allowed because format plugin allows for them. You can change configuration of this plugin by setting http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-format_tags - just remove the h1, h2 and h3 tags and they will not be registered so they will be removed from content of the editor.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I added the following to
I added the following to config.js:
config.format_tags = 'p;h4;h5;h6;pre;address;div';
Works beautifully reinmar. Thak You.