【问题标题】:Youtube video Insert Button not appearing in CKEditorCKEditor 中未出现 Youtube 视频插入按钮
【发布时间】:2021-10-07 06:56:18
【问题描述】:

我在 CKEditor 中添加了 Youtube 插件,并根据页面上的说明在 config.js 中添加了代码,但它没有在工具栏上显示 youtube 插入按钮。

我下载了 Youtube 插件并将其解压缩到文件夹,并将以下代码添加到 config.js

config.extraPlugins = "plugin1,plugin2,youtube";

但它没有显示在工具栏中。我在工具栏中的项目中添加了它也喜欢

{ name: 'styles', items: [ 'Styles', 'Format','youtube' ] }

但是插入按钮没有出现在工具栏中。

块引用

【问题讨论】:

    标签: javascript ckeditor ckeditor4.x


    【解决方案1】:

    当我将它添加到工具栏时,我必须使用大写字母“Y”作为 Youtube:

     { name: 'styles', items: [ 'Styles', 'Format', 'Youtube'] }
    

    添加extraPlugins时将“y”小写字母'y'作为youtube

    config.extraPlugins = "plugin1,plugin2,youtube";
    

    不知道为什么插件页面上给出的说明中缺少它,但这就是它对我的工作方式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-13
      • 2014-11-15
      • 2021-08-05
      • 2012-07-09
      • 2020-10-22
      • 1970-01-01
      • 2012-03-08
      相关资源
      最近更新 更多