2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
8 CKEDITOR
.plugins
.liststyle
=
10 requires
: [ 'dialog' ],
11 init : function( editor
)
13 editor
.addCommand( 'numberedListStyle', new CKEDITOR
.dialogCommand( 'numberedListStyle' ) );
14 CKEDITOR
.dialog
.add( 'numberedListStyle', this.path
+ 'dialogs/liststyle.js' );
15 editor
.addCommand( 'bulletedListStyle', new CKEDITOR
.dialogCommand( 'bulletedListStyle' ) );
16 CKEDITOR
.dialog
.add( 'bulletedListStyle', this.path
+ 'dialogs/liststyle.js' );
18 // If the "menu" plugin is loaded, register the menu items.
19 if ( editor
.addMenuItems
)
22 editor
.addMenuGroup("list", 108);
28 label
: editor
.lang
.list
.numberedTitle
,
30 command
: 'numberedListStyle'
34 label
: editor
.lang
.list
.bulletedTitle
,
36 command
: 'bulletedListStyle'
41 // If the "contextmenu" plugin is loaded, register the listeners.
42 if ( editor
.contextMenu
)
44 editor
.contextMenu
.addListener( function( element
, selection
)
46 if ( !element
|| element
.isReadOnly() )
51 var name
= element
.getName();
53 return { numberedlist
: CKEDITOR
.TRISTATE_OFF
};
54 else if ( name
== 'ul' )
55 return { bulletedlist
: CKEDITOR
.TRISTATE_OFF
};
57 element
= element
.getParent();
65 CKEDITOR
.plugins
.add( 'liststyle', CKEDITOR
.plugins
.liststyle
);