Plugins CKEditor和VideoEmbed插件

Plugins CKEditor和VideoEmbed插件,plugins,configuration,ckeditor,Plugins,Configuration,Ckeditor,有人能告诉我如何在ckeditor中使用EmbeddeMedia插件吗?我正在使用Drupal6和WYSIWYG编辑器。我已将该文件夹添加到插件文件夹中。并在config.js上添加了一行 config.extraPlugins+=(config.extraPlugins?',MediaEmbed': “MediaEmbed”) 但我还没有看到我的配置上的选项。我做错什么了吗 提前感谢您需要将其添加到config.toolbar\u XXX设置中才能显示 在config.js文件中查找以下内容:

有人能告诉我如何在ckeditor中使用EmbeddeMedia插件吗?我正在使用Drupal6和WYSIWYG编辑器。我已将该文件夹添加到插件文件夹中。并在config.js上添加了一行

config.extraPlugins+=(config.extraPlugins?',MediaEmbed': “MediaEmbed”)

但我还没有看到我的配置上的选项。我做错什么了吗


提前感谢

您需要将其添加到config.toolbar\u XXX设置中才能显示

在config.js文件中查找以下内容:

config.toolbar_XXX

CKEDITOR.config.toolbar_XXX
标准的完整工具栏配置如下所示:

  config.toolbar_Full =
  [
    { name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
    { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
    { name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt' ] },
    { name: 'forms', items : [ 'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton',
           'HiddenField' ] },
    '/',
    { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
    { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-

          ','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
    { name: 'links', items : [ 'Link','Unlink','Anchor' ] },
    { name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe' ] },
    '/',
    { name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
    { name: 'colors', items : [ 'TextColor','BGColor' ] },
    { name: 'tools', items : [ 'Maximize', 'ShowBlocks','-','About' ] }
  ];
您需要在希望按钮出现的位置添加插件条目。检查插件自述文件以查看该按钮应被调用

如果您在config.js文件中没有看到这个,可以将它添加到那里,并插入EmbeddeMedia插件按钮的名称。该按钮的名称似乎是“MediaEmbed”,请尝试将其添加到当前某个按钮旁边(添加“MediaEmbed”),它应该在工具栏中可见

查看CKEditor文档可能有助于更好地了解工具栏的自定义方式:


文件的位置在哪里添加取决于您是使用默认配置、自定义配置,还是在创建CKEditor实例时设置工具栏内容。你在干什么?谁来帮我。