使用自定义工具栏在CKEditor中安装youtube插件
我想安装CKEditor的。 安装起来没问题,很好用 但我也想配置我自己的工具栏。例如:使用自定义工具栏在CKEditor中安装youtube插件,youtube,ckeditor,Youtube,Ckeditor,我想安装CKEditor的。 安装起来没问题,很好用 但我也想配置我自己的工具栏。例如: <div id="editable" contenteditable="true" class="ckeditor"> my data </div> <script> // Turn off automatic editor creation first. CKEDITOR.disableAutoInline = true; CKEDITOR.inlin
<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>
我的数据
//首先关闭自动编辑器创建。
CKEDITOR.disableAutoInline=true;
CKEDITOR.inline('可编辑'{
工具栏:[
{name:'insert',项:['Link','Unlink','Image','Table','HorizontalRule','Smiley','SpecialChar','youtubePlugin'],
]
} );
但youtube图标不显示。我试过其他的名字,比如“youtube”,“youtube”,但都没用。
我在源代码中找不到插件的其他名称
你知道怎么做吗
谢谢
Eric好的,我发现问题了。我的假期很愉快:) 我必须设置插件的好名字。这里是“Youtube”而不是“Youtube”。 它现在对所有插件都很有效
Eric您的config.js是否由以下内容组成:config.extraPlugins='youtube'?是的。我试着在工具栏上添加插件,关键词是youtubePlugin、youtube、youtube,但它不起作用