youtube - 使用自定义工具栏在CKEditor中安装youtube插件

标签 youtube ckeditor

我想安装CKEditor的youtube plugin
没问题安装,效果很好。

但我也想配置自己的工具栏。例如 :

<div id="editable" contenteditable="true" class="ckeditor">
  my data
</div>
<script>
  // Turn off automatic editor creation first.
  CKEDITOR.disableAutoInline = true;

  CKEDITOR.inline( 'editable', {
    toolbar: [
      { name: 'insert', items: [ 'Link', 'Unlink', 'Image', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'youtubePlugin' ] },

    ]
} );
</script>

但是youtube图标不会显示。我尝试使用其他名称,例如“youtube”,“Youtube”,但没有任何效果。
而且我在源代码上找不到其他名称的插件。

你知道怎么做吗?

谢谢。

埃里克

最佳答案

好的,我发现了问题。我的假期是美好的:)

我必须设置插件的好名字。这里是“Youtube”而不是“youtube”。
现在,它适用于所有插件。

埃里克

关于youtube - 使用自定义工具栏在CKEditor中安装youtube插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24867776/

相关文章:

video - 更改YouTube用户名

html - 如何使这个 youtube 视频响应?

php - 在 ajax 弹出窗口中使用时,CKEditor 不工作

javascript - 某些网站如何绕过内容创建者对嵌入式YouTube视频设置的限制?

android - 如何从Android应用程序在YouTube上上传视频?

javascript - 在 Angular 2 中鼠标悬停之前,组件变量更改不会在 View 中更新

javascript - 如何以编程方式确定 CKEditor 实例的名称

javascript - 插件删除了所有编辑器功能

php - Youtube视频PHP API 'too_many_recent_calls'

javascript - 如何在更改事件中检测 CKEditor 源模式