Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable html validation and cleanup in CKEditor

Tags:

ckeditor

We have additional placeholders, which are embeded in conent edited by CKEditor and we need to be possible to place such placeholders before and after TR-tag, so we could organize repeating of data in the table. But CKEditor probably find that is not valid HTML and take out repeater placeholders before the table. For example I write next html in source mode:

<table><tbody>{start}<tr><td>...</td></tr>{end}</tbody></table>

I switch to html mode and back to source, now my html is treated to the next view:

<p>{start}{end}</p> <table><tbody><tr><td>...</td></tr></tbody></table>

Possibly there is a CKEditor switch to turn off all syntax cleanup or specially for tables?

like image 560
тараканы_простыли Avatar asked Oct 11 '25 15:10

тараканы_простыли


1 Answers

Try Adding this line to Config.js file:

config.allowedContent = true;
like image 109
Haitham El Shazly Avatar answered Oct 15 '25 19:10

Haitham El Shazly