T
T
tispoint2016-05-09 15:12:06
HTML
tispoint, 2016-05-09 15:12:06

Which version of ckeditor to choose so that it saves what is written?

Can you please tell me which version of ckeditor is better to use?
Tried 4.3.3 and fresh 4.5.8 - same thing.
from code

<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>

he saves
<div class="dexp-shortcodes-box hovericon box-circle box-center">
<div class="box-icon">&nbsp;</div>

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

Everywhere it is advised to register config.allowedContent:true -
registered, does not help.
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;
};

Can you recommend any older version?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question