0

I want to add embed video in ckeditor.

is this correct?

  1. copy the folder into your plugins directory
  2. setting /ckeditor/config.js

CKEDITOR.editorConfig = function( config ) {
config.extraPlugins = 'oembed';

config.oembed_maxWidth = '560';

config.oembed_maxHeight = '315';

};

and include the plugin in the toolbar (how do I do this).

please help..

4

1 回答 1

1

您还应该将按钮添加到工具栏,如下所示:

CKEDITOR.replace( 'editor1', {
    extraPlugins: 'magicline,oembed,iframe',
    oembed_maxWidth: '560',
    oembed_maxHeight:  '315',
    toolbar: [
        [ 'Bold', 'Italic', 'oembed']
    ]
});
于 2013-01-23T20:05:20.033 回答