Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question