Ticket #6073: 6073.patch
File 6073.patch, 938 bytes (added by , 13 years ago) |
---|
-
_source/plugins/liststyle/plugin.js
43 43 { 44 44 editor.contextMenu.addListener( function( element, selection ) 45 45 { 46 if ( !element ) 47 return null; 48 49 if ( element.getAscendant( 'ol') ) 50 return { numberedlist: CKEDITOR.TRISTATE_OFF }; 51 52 if ( element.getAscendant( 'ul' ) ) 53 return { bulletedlist: CKEDITOR.TRISTATE_OFF }; 46 while ( element ) 47 { 48 var name = element.getName(); 49 if ( name == 'ol' ) 50 return { numberedlist: CKEDITOR.TRISTATE_OFF }; 51 else if ( name == 'ul' ) 52 return { bulletedlist: CKEDITOR.TRISTATE_OFF }; 53 54 element = element.getParent(); 55 } 56 return null; 54 57 }); 55 58 } 56 59 }