CKEditor Turn Off Advanced Content Filter -


i'm having difficulty deactivating advanced content filter (config.allowedcontent = true; dosen't seem work). i've tried i've read on forums, including clearing cache, , making external file.

ckeditor 4.2.2 - allowedcontent = true not working

i've added config.protectedsource.push lines, , work point. ckeditor still adds div tags , partially deletes other tags.

i'm creating set of designed templates clients use, in end don't want ckeditor touch code @ all. here have in config.js. if can see did wrong, or knows of way make work, please stressed web guy.

thanks, rusty

ckeditor.editorconfig = function( config ) { config.toolbargroups = [ { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] }, { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] }, { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] }, { name: 'insert' }, { name: 'links' }, { name: 'others' }, '/', { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align' ] }, { name: 'styles' }, { name: 'colors' }, { name: 'tools' }, { name: 'about' } ];  // define changes default configuration here. example: // config.uicolor = '#aadc6e'; // misc options config.allowedcontent = true; // allowedcontent doesn't work :-( // protected source config.protectedsource.push(/<section>[\s\s]*?<\/section>/gi); // allow <section></section> config.protectedsource.push(/<span>[\s\s]*?<\/span>/gi); // allow <span></span> config.protectedsource.push( /<link[\s\s]*?\>/g ); // allow <link> tag config.protectedsource.push( /<!--[\s\s]*?\>/g ); // allow <comment> tag config.protectedsource.push( /<br[\s\s]*?\/>/g );   // allow br tags config.protectedsource.push(/<script>[\s\s]*?<\/script>/gi); // allow <script></script> config.protectedsource.push(/<div>[\s\s]*?<\/div>/gi); // allow <div></div>  config.removebuttons = 'anchor,iframe'; config.format_tags = 'p;h1;h2;h3;h4;h5;h6'; // format button options config.height = '500px'; // edit window height config.skin = 'moono'; config.stylesset = 'vam_styles:/templates/admin/-css/vam_styles.js'; // style button options // add rules p , span elements. config.stylesheetparser_validselectors = /\^(p|span\div)\.\w+/; config.stylesheetparser_skipselectors 

};

i'm creating set of designed templates clients use, in end don't want ckeditor touch code @ all.

this not possible. ckeditor not web site builder can load possible html. rich text editor. should use edit textual part of website, not whole layout.

for instance, if had layout 2 columns , header above them, best if there 3 editors - 1 each column , 1 header. of course, in basic case ckeditor used edit or 3 sections @ once, the more complex layout more important use ckeditor correctly.

ps. it's ckeditor, not ckeditor.


Popular posts from this blog