Our pages are often very complicated and are better edited using other means. However, when I paste the code, a lot of my stuff disappears. Labels are gone, placeholder attributes are gone, classes are gone.
Even if I do it in the source view, and I manually edit it, then the HTML is still stripped when I go back to the WYSIWYG view.
Why does markup keep disappearing and how do I make it stop?
Check out the Advanced
Check out the Advanced Content Filter guide. It is responsible for filtering and it can be disabled by setting config.allowedContent = true;
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Yep. Forgot to mention that I
Yep. Forgot to mention that I am using inline editing with the source dialog plugin.
I discovered that I needed:
CKEDITOR.inline('ContentCKEditor', { allowedContent: true });
or
$("div[contenteditable=true]").ckeditor({ allowedContent: true });
However, even so, it is still removing the form element.