Preventing adding CKEditor 'data-cke-saved' and converting & lt;

I have a jQuery CKEditor implementation. We often add HTML markup to the 'title' attribute of tag A using a dialog. However, when we do this, it converts the HTML so that it is parsed as text. We want the code to remain as it was, instead of putting "cke-saved" data all over the world and converting <> to & lt and> gt.

I tried to disable objects in the config, but it does not work.

Can anyone help?

Thank.

+3
source share
1 answer

SRC: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.protectedSource

, HTML, HTML, , WYSIWYG .  

 
config.protectedSource.push( /<\?[\s\S]*?\?>/g );   // PHP code

config.protectedSource.push(/<% [\ s\S] *?% > /g);//ASP-

config.protectedSource.push(/(] + > [\ s |\S] *? </asp: [^ > ] + > ) | (] +/" > )/gi);// ASP.Net

:   [] ( )
0

All Articles