【问题标题】:ckeditor remove specific attributes from a tabckeditor 从选项卡中删除特定属性
【发布时间】:2012-06-11 22:43:17
【问题描述】:

在 ckeditor init 中,要删除对话框选项卡,可以执行以下操作:

CKEDITOR.on( 'dialogDefinition', function( ev )
   {
      // Take the dialog name and its definition from the event data.
      var dialogName = ev.data.name;
      var dialogDefinition = ev.data.definition;

      // Check if the definition is from the dialog we're interested in
      if ( dialogName == 'link' )
      {
        dialogDefinition.removeContents( 'advanced' );
      }
   });

这将从链接对话框中删除“高级”选项卡。

还可以从选项卡中删除特定属性,例如:

     var infoTab = dialogDefinition.getContents( 'info' );

     // Remove unnecessary widgets from the 'Link Info' tab.         
     infoTab.remove( 'linkType');
     infoTab.remove( 'protocol');

所以这很好用,但我的问题是我找不到属性名称的详细列表,例如上面示例中的“linkType”或“protocol”。

基本上我想从图像对话框中删除高级选项卡中的宽度、高度、css 类和 id 等,但我在 ckeditor 文档中找不到这些属性的名称,有人知道我在哪里可以找到这个吗? 还是给个清单?

【问题讨论】:

    标签: configuration ckeditor widget


    【解决方案1】:

    您可以按照 HowTos 中的说明使用开发者工具插件:http://docs.cksource.com/CKEditor_3.x/Howto/Field_Names

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-24
      • 1970-01-01
      • 2020-07-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多