D
D
Denis2015-09-17 16:19:05
Layout
Denis, 2015-09-17 16:19:05

How to disable tag formatting in CKEDITOR?

Hello. When I add content like this to the editor: it outputs it like this . How to make it so that it does not change the location of the tags? This is written in the config:<section>тут инфа</section><section></section>тут инфа

CKEDITOR.editorConfig = function( config ) {
  // Define changes to default configuration here. For example:
  // config.language = 'fr';
  // config.uiColor = '#AADC6E';
  config.allowedContent = true;
  CKEDITOR.dtd.$removeEmpty.i = 0;
  config.protectedSource.push( /<i[^>]*><\/i>/g ); 
};

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
weranda, 2019-04-23
@weranda

When you click on the positions of the active filter located on the left, you can notice the addition of POST requests in the address bar of the browser:
When you click on sales, then there you have a link to some page object that is not on the page, but it may be is in the filter.
You need to set a link to the filter object - a position with discounts. I did not find such a position in the filter, maybe it is somewhere in the bowels of the filter.
See JS:
Perhaps the problem is in it. I'm not strong in JS, but there you have a selector in line 25.checkbox_23product_tag, which is simply not on the page, and after that there is a click action on an element that is also not on the page, i.e. when you click on sales, there must be at least two more elements - label n input. That's what I think, but I could be wrong.

N
Nina Nokhrina, 2017-12-20
@ipnino

В файл config.js добавить
config.allowedContent = true;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question