Когда я набираю свой wysiwig, например,
<div class="jedna">xxx</div>
и сохраняю форму, все в порядке.Класс сохраняется и отображается.
Но когда я снова открываю форму с содержимым, атрибут класса удаляется, даже если "config.allowedContent = true;"настраивается в config.js.Как это возможно?
Мой конфигурационный файл ckeditor config.js :
CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = "youtube,wordcount";
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' ] ,
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
config.removeButtons = 'Underline,Subscript,Superscript';
config.format_tags = 'div;p;h2;h3;h4;h5;pre';
config.removeDialogTabs = 'image:advanced;link:advanced';
config.wordcount = {
showParagraphs: false,
showWordCount: false,
showCharCount: true
};
config.allowedContent = true;
};