Я новичок в настройке CKEditor на Drupal 7, и даже с пользовательским интерфейсом это всегда было болью. Я пытаюсь остановить его снятие/удаление тегов, в частности - код, pre, ins del, blockquote, q, dl, dd, dt. У меня есть тестовая страница, которую я использую для проверки стилей моего сайта, и они удаляются как в полном, так и в фильтре. Grrrr ...CKEditor снимает/удаляет теги = (
Имейте в виду, я понятия не имею, что я делаю здесь. Пожалуйста, помогите мне понять это, так что я не тратить еще один день на это. = (дополнительное допустимое содержание
АКФ
Я добавил следующее там:
br; div; span; header; footer; section; aside; figure; a; img; strong; em; h1; h2; h3; h4; h5; h6; ins; del; cite; q; blockquote; code; pre; table; tr; td; th; thead; tfoot; caption; legend; col; ul; ol; li; dl; dd; dt;</code>
config.js
Я нашел config.js и добавил следующее, чтобы заставить его прекратить зачистки теги.
CKEDITOR.editorConfig = function(config)
{
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.allowedContent = 'br div span;' +
'header footer section aside figure;' +
'a[!href]; img[!src,alt,width,height];strong em h1 h2 h3 h4 h5 h6;' +
'ins del cite q blockquote code pre;' +
'table tr td th thead tfoot caption legend col;' +
'ul ol li dl dd dt';
config.extraAllowedContent = ' br div(*) span(*);' +
'header footer section aside figure;' +
'a[!href]; img[!src,alt,width,height];strong em h1 h2 h3 h4 h5 h6;' +
'ins del cite q blockquote code pre;' +
'table tr td th thead tfoot caption legend col;' +
'ul ol li dl dd dt';
};
Несомненно, кто-то использовал модуль CKEditor и знает, как заставить его работать правильно? –