X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fliststyle%2Fdialogs%2Fliststyle.js;h=aa8840b93da050a5fe7a43d68818ac3273fbd9e1;hp=d14ebb561458b29968014fc351adf0c41cd2bfca;hb=039a051ccf3901311661022a30afd60fc38130c9;hpb=c9fdde67e6384bd5a66adc2b3bba5c4ce9db56c7 diff --git a/_source/plugins/liststyle/dialogs/liststyle.js b/_source/plugins/liststyle/dialogs/liststyle.js index d14ebb5..aa8840b 100644 --- a/_source/plugins/liststyle/dialogs/liststyle.js +++ b/_source/plugins/liststyle/dialogs/liststyle.js @@ -12,7 +12,7 @@ catch( e ) { return null; } range.shrink( CKEDITOR.SHRINK_TEXT ); - return range.getCommonAncestor().getAscendant( listTag, true ); + return range.getCommonAncestor().getAscendant( listTag, 1 ); } var mapListStyle = { @@ -28,10 +28,11 @@ function listStyle( editor, startupPage ) { + var lang = editor.lang.list; if ( startupPage == 'bulletedListStyle' ) { return { - title : editor.lang.list.bulletedTitle, + title : lang.bulletedTitle, minWidth : 300, minHeight : 50, contents : @@ -43,15 +44,15 @@ [ { type : 'select', - label : editor.lang.list.type, + label : lang.type, id : 'type', style : 'width: 150px; margin: auto;', items : [ - [ editor.lang.list.notset, '' ], - [ editor.lang.list.circle, 'circle' ], - [ editor.lang.list.disc, 'disc' ], - [ editor.lang.list.square, 'square' ] + [ lang.notset, '' ], + [ lang.circle, 'circle' ], + [ lang.disc, 'disc' ], + [ lang.square, 'square' ] ], setup : function( element ) { @@ -95,26 +96,26 @@ var listStyleOptions = [ - [ editor.lang.list.notset, '' ], - [ editor.lang.list.lowerRoman, 'lower-roman' ], - [ editor.lang.list.upperRoman, 'upper-roman' ], - [ editor.lang.list.lowerAlpha, 'lower-alpha' ], - [ editor.lang.list.upperAlpha, 'upper-alpha' ], - [ editor.lang.list.decimal, 'decimal' ] + [ lang.notset, '' ], + [ lang.lowerRoman, 'lower-roman' ], + [ lang.upperRoman, 'upper-roman' ], + [ lang.lowerAlpha, 'lower-alpha' ], + [ lang.upperAlpha, 'upper-alpha' ], + [ lang.decimal, 'decimal' ] ]; if ( !CKEDITOR.env.ie || CKEDITOR.env.version > 7 ) { listStyleOptions.concat( [ - [ editor.lang.list.armenian, 'armenian' ], - [ editor.lang.list.decimalLeadingZero, 'decimal-leading-zero' ], - [ editor.lang.list.georgian, 'georgian' ], - [ editor.lang.list.lowerGreek, 'lower-greek' ] + [ lang.armenian, 'armenian' ], + [ lang.decimalLeadingZero, 'decimal-leading-zero' ], + [ lang.georgian, 'georgian' ], + [ lang.lowerGreek, 'lower-greek' ] ]); } return { - title : editor.lang.list.numberedTitle, + title : lang.numberedTitle, minWidth : 300, minHeight : 50, contents : @@ -130,10 +131,10 @@ children : [ { - label : editor.lang.list.start, + label : lang.start, type : 'text', id : 'start', - validate : CKEDITOR.dialog.validate.integer( editor.lang.list.validateStartNumber ), + validate : CKEDITOR.dialog.validate.integer( lang.validateStartNumber ), setup : function( element ) { var value = element.getAttribute( 'start' ) || 1; @@ -146,7 +147,7 @@ }, { type : 'select', - label : editor.lang.list.type, + label : lang.type, id : 'type', style : 'width: 100%;', items : listStyleOptions,