Regarding http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
It there defines rule like
extraAllowedContent: 'b i',
And then after a few lines
editor.filter.check( 'b' ); // -> true (thanks to extraAllowedContent)
editor.setData( '<h1><i>Foo</i></h1><p class="left"><b>Bar</b> <a href="http://foo.bar">foo</a></p>' );
// Editor contents will be:
'<h1>Foo</h1><p><b>Bar</b> foo</p>'
This to me is very confusing. It saves the <b> tag due to extraAlowedContent, but it strips the <i> tag even though it is defined in extraAllowedContent. Is this a problem with the documentation or what does it actually do?
You're right, there is an
You're right, there is an error in the documentation. The <i> tag will not be stripped in this scenario. We will correct it ASAP.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Done
Done
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+