ckeditor 4.7.1 not saving youtube embed code -
i trying unsuccessfully insert embed code 4.7.1 ckeditor. click on source...paste embed code...click source again...the video shows , can play video. when go save "post" text , video thing remains text. iframe replaced <p> </p>
. here config.js file:
ckeditor.editorconfig = function( config ) { // define changes default configuration here. // complete reference see: // http://docs.ckeditor.com/#!/api/ckeditor.config // toolbar groups arrangement, optimized 2 toolbar rows. config.toolbargroups = [ { name: 'clipboard', groups: [ 'clipboard', 'undo' ] }, { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] }, { name: 'links' }, { name: 'insert' }, { name: 'forms' }, { name: 'tools' }, { name: 'document', groups: [ 'mode', 'document', 'doctools' ] }, { name: 'others' }, '/', { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] }, { name: 'styles' }, { name: 'colors' }, { name: 'about' } ]; // remove buttons provided standard plugins, // not needed in standard(s) toolbar. config.removebuttons = 'underline,subscript,superscript'; // set common block elements. config.format_tags = 'p;h1;h2;h3;pre'; // simplify dialog windows. config.removedialogtabs = 'image:advanced;link:advanced'; config.extraallowedcontent = 'p(*)[*]{*};div(*)[*]{*};li(*)[*]{*};ul(*)[*]{*};iframe(*)[*]{*}'; config.allowedcontent = true; };
Comments
Post a Comment