I've been using ckeditor for years and it's been fairly easy up until now. My needs are simple. I want to allow someone to enter in the source view ANY content html tags with classes and ids intact. That's it.
I've tried a plethora of examples from the documentation and none work with my config.js page. Before you ask, yes I'm certain I'm modifying the correct config.js.
I'd be happy if this worked.
CKEDITOR.editorConfig = function( config ) {
allowedContent: 'p[*] h1[*] h2[*] h3[*] h4[*] span[*] div[*] img[*] a[*]';
};
I don't really know what you
I don't really know what you've been reading, but in the introduction to ACF at http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter there's a big box stating:
Tried that too
Adding CKEDITOR.config.allowedContent = 'true' in the config.js file did not seem to work either. This is using the latest download as of today.
For example if I enter <span class="bob">Yay bob</span> in source view, then go to normal view and then click back... it has removed the <span class="bob">Yay bob</span> and replaced it with <p>Yay Bob</p>.
Thus, why I think either the documentation is wrong, or I'm doing something wrong trying to set that variable in the config.js.
Sigh... I'm a moron. I had single quotes.
CKEDITOR.config.allowedContent = true; (THIS WORKS)
CKEDITOR.config.allowedContent = 'true'; (THIS DOES NOT WORK)