@tispoint

Какую версию ckeditor выбрать, чтобы он сохранял то, что написано?

Подскажите пожалуйста, на какой версии ckeditor лучше остановиться?
Пробовал 4.3.3 и свежую 4.5.8 - одно и то же.

из кода
<div class="dexp-shortcodes-box hovericon box-circle box-center">
<div class="box-icon">
<a class="ctools-use-modal ctools-modal-modal-popup-medium ctools-use-modal-processed" href="/modal_forms/nojs/webform/125">
<i class="effect-1 sub-a fa fa-phone fa-2x"></i>
</a>
</div>
<h3 class="box-title"> Заказать звонок</h3>
</div>


он сохраняет
<div class="dexp-shortcodes-box hovericon box-circle box-center">
<div class="box-icon">&nbsp;</div>

<h3 class="box-title">Заказать звонок</h3>
</div>


Везде советуют прописать config.allowedContent:true -
прописал, не помогает.

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here.
	// For complete reference see:
	// http://docs.ckeditor.com/#!/api/CKEDITOR.config

	// The toolbar groups arrangement, optimized for two 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 some buttons provided by the standard plugins, which are
	// not needed in the Standard(s) toolbar.
	config.removeButtons = 'Underline,Subscript,Superscript';

	// Set the most common block elements.
	config.format_tags = 'p;h1;h2;h3;pre';

	// Simplify the dialog windows.
	config.removeDialogTabs = 'image:advanced;link:advanced';
    
    config.allowedContent:true;
};


Может какую-нибудь старую версию посоветуете?
  • Вопрос задан
  • 207 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы