Sha256: db62f01aff8fb944fceb07b9c908796fa6aede8ccad51822eb97453fa7e060f7
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
/* Copyright (c) 2003-2010, 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 ) { 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 ); })();
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-3.3.2 | generators/ckeditor_install/templates/ckeditor/_source/plugins/liststyle/plugin.js |