Changeset 5777
- Timestamp:
- 08/02/10 01:49:10 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/liststyle/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5776 r5777 99 99 <li><a href="http://dev.fckeditor.net/ticket/6059">#6059</a> : Changing list type didn't preserve the list's attributes.</li> 100 100 <li><a href="http://dev.fckeditor.net/ticket/5193">#5193</a> : In Firefox, the element path options had the text cursor instead of the arrow.</li> 101 <li><a href="http://dev.fckeditor.net/ticket/6073">#6073</a> : The list context menu was showing the wrong option when in a mixed list hierarchy.</li> 101 102 <li>Updated the following language files:<ul> 102 103 <li>Chinese Simplified;</li> -
CKEditor/trunk/_source/plugins/liststyle/plugin.js
r5732 r5777 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 }
Note: See TracChangeset
for help on using the changeset viewer.
