Hi guys,
We have an auction site and we have several users migrating from other auction sites and they bring their HTML templates in the migration which gets stored in the database directly and 90% of the time the HTML is not compliant HTML.
When the user goes to edit the HTML - it cleans the HTML before loading it into the textarea which breaks the display of their template and i'm guessing it will try to clean it after you save it?
Is there a way to ignore this behavior?
CKEditor always outputs clean
CKEditor always outputs clean HTML code, otherwise it would be impossible for it to work on your text (which, for CKEditor, is simply HTML code). See more here: http://ckeditor.com/blog/Did-You-Know-CKEditor-Is-Web-Standards-Compliant
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!
It doesn't make sense...you
It doesn't make sense...you should by default restrict to clean HTML but atleast provide the developer to control it...there are other ways of getting around it by modifying the source code but if you could introduce a property that would make a lot of us happier.
Well, I'm really sorry but I
Well, I'm really sorry but I have to disagree. You seem to want the best of two worlds: be able to edit HTML in WYSIWYG-style and at the same time, work on crappy code. This is simply impossible, you can't have both. If you have invalid code, you need to go and edit it manually. CKEditor is not a human-being who is able to determine the intentions of the author of invalid code like you do. It needs clean HTML code to work properly otherwise you will not be able to use its features as it is only a tool that is designed to work on specific markup. If this markup is incorrect, it will not work, it's that simple.
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!
I'm afraid that you are not
I'm afraid that you are not aware of how WYSIWYG editors work. It is completely impossible to prevent from fixing incorrect HTML because it is passed through the browser.
Check these answers for more details: http://ckeditor.com/comment/125615#comment-125615 and http://ckeditor.com/comment/125637#comment-125637
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+