【问题标题】:how to install oembed to ckeditor如何将oembed安装到ckeditor
【发布时间】:2013-01-21 11:41:35
【问题描述】:

我想在 ckeditor 中添加嵌入视频。

这对吗?

  1. 将该文件夹复制到您的插件目录中
  2. 设置 /ckeditor/config.js

CKEDITOR.editorConfig = 函数(配置) {
config.extraPlugins = 'oembed';

config.oembed_maxWidth = '560';

config.oembed_maxHeight = '315';

};

并在工具栏中包含插件(我该怎么做)。

请帮忙..

【问题讨论】:

    标签: php ckeditor oembed


    【解决方案1】:

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

    CKEDITOR.replace( 'editor1', {
        extraPlugins: 'magicline,oembed,iframe',
        oembed_maxWidth: '560',
        oembed_maxHeight:  '315',
        toolbar: [
            [ 'Bold', 'Italic', 'oembed']
        ]
    });
    

    【讨论】:

      猜你喜欢
      • 2016-04-05
      • 2020-04-30
      • 1970-01-01
      • 1970-01-01
      • 2020-03-31
      • 2018-05-02
      • 1970-01-01
      • 2018-07-15
      • 1970-01-01
      相关资源
      最近更新 更多