I'm trying to set up CouchCMS for updating a static site which has relatively straightforward content, but a lot of content layout DIVs and scattered images. The WYSIWYG mode of CKEditor works well enough for basic text editing (it massacres the layout, but the text is clearly editable, which is good enough). I started with a static site and added CouchCMS as per the tutorial.
Unfortunately, CKEditor insists on modifying the HTML at the time it loads the content, even if I change nothing in the editor -- removing tags, changing tags to other tags, etc. If I paste HTML code into the source view of the editor, switch to WYSIWYG view and then switch back to source view, the code often changes significantly.
I am aware that CKEditor employs content filtering, which is highly configurable. I've poked around in the CKEditor documentation, and it appears you should be able to disable content filtering by adding
Apologies if I'm missing something obvious, but has anyone else run into this issue and managed to configure CKEditor so it does not modify existing HTML tags at all? Thanks!
Unfortunately, CKEditor insists on modifying the HTML at the time it loads the content, even if I change nothing in the editor -- removing tags, changing tags to other tags, etc. If I paste HTML code into the source view of the editor, switch to WYSIWYG view and then switch back to source view, the code often changes significantly.
I am aware that CKEditor employs content filtering, which is highly configurable. I've poked around in the CKEditor documentation, and it appears you should be able to disable content filtering by adding
- Code: Select all
CKEDITOR.config.allowedContent = true;
Apologies if I'm missing something obvious, but has anyone else run into this issue and managed to configure CKEditor so it does not modify existing HTML tags at all? Thanks!