ckeditor protectedSource 保护源码配置
2015-12-16 00:00:00 by 【6yang】,
1760
visits,
收藏 |
返回
CKEDITOR.config.protectedSource.push(/<a[^>]*></a>/g);
CKEDITOR.config.protectedSource.push(/<i[^>]*></i>/g);
CKEDITOR.config.protectedSource.push(/<b[^>]*></b>/g);
CKEDITOR.config.protectedSource.push(/<em[^>]*></em>/g);
CKEDITOR.config.protectedSource.push( /<?[sS]*??>/g );
CKEDITOR.config.protectedSource.push(/[^<]*(<h1>([^<]+)</h1>)/g);
CKEDITOR.config.protectedSource.push( /<cfscript[sS]*?/cfscript>/g );
CKEDITOR.config.protectedSource.push( /<br[sS]*?/>/g ); // BR Tags
CKEDITOR.config.protectedSource.push( /<img[sS]*?/>/g ); // IMG Tags
CKEDITOR.config.protectedSource.push( /{exp:[sS]*?{/exp:[^}]+}/g ); // Expression Engine style server side code
CKEDITOR.config.protectedSource.push( /{.*?}/g);
CKEDITOR.config.protectedSource.push( /<tex[sS]*?/tex>/g);
CKEDITOR.config.protectedSource.push( /<object[s|S]+?</object>/g); // Protects <OBJECT> tags
CKEDITOR.config.protectedSource.push( /<style[sS]*?/style>/g); // Protects <STYLE> tags
CKEDITOR.config.protectedSource.push( /<cfoutput[sS]*?/cfoutput>/g); // Protects <CFOUTPUT> tags
CKEDITOR.config.protectedSource.push( /<pre[sS]*?/pre>/g);
CKEDITOR.config.protectedSource.push( /<code[sS]*?/code>/g);
CKEDITOR.config.protectedSource.push( /<cfinclude[sS]*?/cfinclude>/g);
CKEDITOR.config.protectedSource.push( /<cfloop[sS]*?/cfloop>/g);
CKEDITOR.config.protectedSource.push( /<cfset[sS]*?/cfset/g);
CKEDITOR.config.protectedSource.push( /<[sS]*?/>/g);
share