Hi,
I am pasting a custom html code:
<ul id="youtube">
<li>sdasdas</li>
<li>sdasdas</li>
<li>sdasdas</li>
</ul>
and saving html code in database. When reloading the code in editor it's ripping id="youtube" from UL tag. How do i solve the above problem?
Regards
Prashant
If you are using CKEditor 4.3
If you are using CKEditor 4.3 and above, you need to configure Advanced Content Filter to accept the id attribute for ul elements. See more here: http://docs.ckeditor.com/#!/guide/dev_allowed_content_rules
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!
Hi,
Hi,
I have added allowedContent: 'ul[id]', which is now not removing id attribute from UL tag but now I dont see all the buttons on the toolbar and its changing the format of existing data. I am using full toolbar configration. Any pointers ?
4.3.4 (revision 40ccd20)
Regards
Prashant
You did not include your
You did not include your entire code, but my guess is that you should use the config.extraAllowedContent to extend the allowed content rules, because you probably overwrote them now.
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!