Configuration ckeditor从选项卡中删除特定属性

Configuration ckeditor从选项卡中删除特定属性,configuration,ckeditor,widget,Configuration,Ckeditor,Widget,在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;

在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');
这将从链接对话框中删除“高级”选项卡

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

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文档中找不到这些属性的名称,有人知道我在哪里可以找到这些吗?
或者给出一个列表?

您可以使用开发者工具插件,如HowTos中所述: