We have HTML5 template code that we are pushing into CKE for editing. By the time the editor gets a hold of it, it strips all the attributes from the document that it doesn't like and leaves it essentially unformatted. What the heck is going on here? I have noticed that CKE tends to restructure code as it sees fit in what appears to be an attempt to make things XHTML compliant... but the web doesn't run on XHTML. It runs on HTML4/5 and CKE is breaking this badly. How can we make it stop?
Thanks in advance...
I have found the new addition
I have found the new addition in 4.1 which appears to help the situation. I am uncertain as to whether it is a full fix, but it is looking good initially. The trick is the new CKEDITOR.config.allowedContent = true to diable content filtering upon initial load. I believe the default value for this should be true by DEFAULT in order not to break peoples' existing implementations. Add new features/functions in a default disabled state and allow the integrator to enable them if they desire. Otherwise what you're doing is not a point-release type change... it's a full version!
Ya, there was quite a bit of
Ya, there was quite a bit of debate on whether to leave Advanced Content Filter (ACF) on by default or not. One of our developers, Reinmar, best explains it here.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!