我想安装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/