S
S
s_katala2016-12-13 19:19:09
CKEditor
s_katala, 2016-12-13 19:19:09

Ckeditor cuts all tags?

Guys, help.
ckeditor cuts all tags, removes span div, class, id everything that can
be added to config.js so that it is not deleted

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
s_katala, 2016-12-13
@s_katala

CKEDITOR.editorConfig = function( config ) {
config.language = 'ru';
config.startupMode = 'source'; // mode Source
config.toolbar = 'MyToolbar'; // custom panel
config.indentClasses = ["ul-grey", "ul-red", "text-red", "ul-content-red", "circle", "style-none", "decimal", " paragraph-portfolio-top", "ul-portfolio-top", "url-portfolio-top", "text-grey"];
config.protectedSource.push(/<(style)[^>]*>.*<\/style>/ig);
config.protectedSource.push(/<(script)[^>]*>.*<\/script>/ig);// enable tags

I
i_osif, 2017-04-04
@i_osif

Hello!
I insert video through the videodetector plugin. The video is inserted and displayed normally. I then go into and out of "Source" mode without changing anything. And after exiting the "Source" mode, no video is shown. In this case, the html-code in the "Source" mode does not change.
Here is part of my settings:
config.protectedSource.push(/<(iframe)[^>]*>.*<\/iframe>/ig);
config.protectedSource.push(/<(input)[^>]*>/ig);
config.extraAllowedContent = 'iframe[*]{*}(*);';
config.allowedContent = true;
config.allowedContentRules = true;
What else do I need to configure so that after exiting the "Source" mode, the video is shown?
After leaving the "Source" mode
The same thing happens if I add the html-code of the video not through the videodetector plugin, but in the "Source" mode.
ckeditor 4.6.2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question