jquery – CK Editor 4 restructures complex HTML-ThrowExceptions

Exception or error:

Using CK Editor Source Dialog plugin

I have a complex HTML – email template with nested table, tr, td format. When I click on CK Editor source and enter the HTML code and again click on Source, it shows wrong HTML, as table and tr, td structure is modified by ckeditor.

When I check it using any online WYSIWYG or as an html file, it shows the design correctly.

CKEDITOR.config.allowedContent = true;
CKEDITOR.config.extraPlugins = 'sourcedialog'; 

Original code: Original HTML pasted in CK Editor

Modified code: Modified HTML after code pasted in CKEditor

Any help would be appreciated. Thanks!

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *