X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Ftable%2Fplugin.js;fp=_source%2Fplugins%2Ftable%2Fplugin.js;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=154080f63d0e974ec1d818e7143027c1ab64f53c;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_source/plugins/table/plugin.js b/_source/plugins/table/plugin.js deleted file mode 100644 index 154080f..0000000 --- a/_source/plugins/table/plugin.js +++ /dev/null @@ -1,79 +0,0 @@ -/* -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.html or http://ckeditor.com/license -*/ - -CKEDITOR.plugins.add( 'table', -{ - requires : [ 'dialog' ], - init : function( editor ) - { - var table = CKEDITOR.plugins.table, - lang = editor.lang.table; - - editor.addCommand( 'table', new CKEDITOR.dialogCommand( 'table' ) ); - editor.addCommand( 'tableProperties', new CKEDITOR.dialogCommand( 'tableProperties' ) ); - - editor.ui.addButton( 'Table', - { - label : lang.toolbar, - command : 'table' - }); - - CKEDITOR.dialog.add( 'table', this.path + 'dialogs/table.js' ); - CKEDITOR.dialog.add( 'tableProperties', this.path + 'dialogs/table.js' ); - - // If the "menu" plugin is loaded, register the menu items. - if ( editor.addMenuItems ) - { - editor.addMenuItems( - { - table : - { - label : lang.menu, - command : 'tableProperties', - group : 'table', - order : 5 - }, - - tabledelete : - { - label : lang.deleteTable, - command : 'tableDelete', - group : 'table', - order : 1 - } - } ); - } - - editor.on( 'doubleclick', function( evt ) - { - var element = evt.data.element; - - if ( element.is( 'table' ) ) - evt.data.dialog = 'tableProperties'; - }); - - // If the "contextmenu" plugin is loaded, register the listeners. - if ( editor.contextMenu ) - { - editor.contextMenu.addListener( function( element, selection ) - { - if ( !element || element.isReadOnly() ) - return null; - - var isTable = element.hasAscendant( 'table', 1 ); - - if ( isTable ) - { - return { - tabledelete : CKEDITOR.TRISTATE_OFF, - table : CKEDITOR.TRISTATE_OFF - }; - } - - return null; - } ); - } - } -} );