X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fliststyle%2Fplugin.js;fp=_source%2Fplugins%2Fliststyle%2Fplugin.js;h=0000000000000000000000000000000000000000;hb=4625dba05116026713fee9008dd93306be0d1553;hp=8d4f5754a21eb33398b36e371962470ce40c18e9;hpb=3fe9cac293e090ea459a3ee10d78cbe9e1dd0e03;p=ckeditor.git diff --git a/_source/plugins/liststyle/plugin.js b/_source/plugins/liststyle/plugin.js deleted file mode 100644 index 8d4f575..0000000 --- a/_source/plugins/liststyle/plugin.js +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. -For licensing, see LICENSE.html or http://ckeditor.com/license -*/ - -(function() -{ - CKEDITOR.plugins.liststyle = - { - requires : [ 'dialog' ], - init : function( editor ) - { - editor.addCommand( 'numberedListStyle', new CKEDITOR.dialogCommand( 'numberedListStyle' ) ); - CKEDITOR.dialog.add( 'numberedListStyle', this.path + 'dialogs/liststyle.js' ); - editor.addCommand( 'bulletedListStyle', new CKEDITOR.dialogCommand( 'bulletedListStyle' ) ); - CKEDITOR.dialog.add( 'bulletedListStyle', this.path + 'dialogs/liststyle.js' ); - - // If the "menu" plugin is loaded, register the menu items. - if ( editor.addMenuItems ) - { - //Register map group; - editor.addMenuGroup("list", 108); - - editor.addMenuItems( - { - numberedlist : - { - label : editor.lang.list.numberedTitle, - group : 'list', - command: 'numberedListStyle' - }, - bulletedlist : - { - label : editor.lang.list.bulletedTitle, - group : 'list', - command: 'bulletedListStyle' - } - }); - } - - // If the "contextmenu" plugin is loaded, register the listeners. - if ( editor.contextMenu ) - { - editor.contextMenu.addListener( function( element, selection ) - { - if ( !element || element.isReadOnly() ) - return null; - - while ( element ) - { - var name = element.getName(); - if ( name == 'ol' ) - return { numberedlist: CKEDITOR.TRISTATE_OFF }; - else if ( name == 'ul' ) - return { bulletedlist: CKEDITOR.TRISTATE_OFF }; - - element = element.getParent(); - } - return null; - }); - } - } - }; - - CKEDITOR.plugins.add( 'liststyle', CKEDITOR.plugins.liststyle ); -})();