S
S
seredaes2018-01-05 07:50:09
JavaScript
seredaes, 2018-01-05 07:50:09

How to set up CKeditor?

People, please help me set up CKeditor.
I initialize like this:

CKEDITOR.replace('editor', {
            uiColor: '#14B8C4'
        });

5a4f03034f708816423763.png
After I do this:
CKEDITOR.replace('editor', {
            uiColor: '#14B8C4'
        });
        CKEDITOR.editorConfig = function (config) {
                config.extraPlugins = 'seimage',
                config.height = 500,
                config.toolbar = 'MyToolbar';
                config.toolbar_MyToolbar = [
                    ['Bold', 'Italic', '-', 'Strike', 'Subscript', 'Superscript', 'RemoveFormat', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
                    ['TextColor', 'BGColor'],
                    ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
                    '/',
                    ['Image', 'Table', 'HorizontalRule', 'SpecialChar', 'PageBreak', 'seimage', 'videoDialog', 'removeformat', 'Maximize', 'ShowBlocks', 'Source','Preview'],
                    '/',
                    ['Styles', 'Format', 'Font', 'FontSize'],
                    '/',
                    ['seimage']
                ]
        };

The result is this:
5a4f034a7b815340826211.pngEverything would be fine, but I can’t connect the youtube, html5video plugins, etc. again.
Insert
config.extraPlugins = 'seimage,html5video',
 ['html5video']

gives nothing.
Tell me how to correctly connect the plugin please.
Thanks in advance for your time :)

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