Ticket #6041: 6041_2.patch
File 6041_2.patch, 4.0 KB (added by , 14 years ago) |
---|
-
_source/skins/kama/icons.css
248 248 background-position: 0 -416px; 249 249 } 250 250 251 .cke_skin_kama .cke_mixed_dir_content .cke_button_numberedlist .cke_icon 252 { 253 background-position: 0 -1217px; 254 } 255 256 .cke_skin_kama .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon 257 { 258 background-position: 0 -1233px; 259 } 260 251 261 .cke_skin_kama .cke_button_outdent .cke_icon 252 262 { 253 263 background-position: 0 -432px; … … 258 268 background-position: 0 -448px; 259 269 } 260 270 271 .cke_skin_kama .cke_mixed_dir_content .cke_button_indent .cke_icon 272 { 273 background-position: 0 -1265px; 274 } 275 276 .cke_skin_kama .cke_mixed_dir_content .cke_button_outdent .cke_icon 277 { 278 background-position: 0 -1249px; 279 } 280 261 281 .cke_skin_kama .cke_button_justifyleft .cke_icon 262 282 { 263 283 background-position: 0 -464px; -
_source/skins/kama/toolbar.css
242 242 243 243 .cke_skin_kama .cke_rtl .cke_button .cke_icon 244 244 { 245 background-image: url(icons_rtl.png); 246 } 247 248 .cke_skin_kama .cke_rtl .cke_button .cke_icon 249 { 245 250 float: right; 246 251 } 247 252 -
_source/plugins/menu/plugin.js
221 221 // Put the items in the right order. 222 222 sortItems( items ); 223 223 224 var chromeRoot = editor.element.getNext().getChild( 1 ); 225 var mixedContentClass = chromeRoot.hasClass( 'cke_mixed_dir_content' ) ? ' cke_mixed_dir_content' : ''; 226 224 227 // Build the HTML that composes the menu and its items. 225 var output = [ '<div class="cke_menu " role="presentation">' ];228 var output = [ '<div class="cke_menu' + mixedContentClass + '" role="presentation">' ]; 226 229 227 230 var length = items.length, 228 231 lastGroup = length && items[ 0 ].group; -
_source/skins/kama/menu.css
44 44 float: left; 45 45 } 46 46 47 .cke_rtl .cke_skin_kama .cke_menuitem .cke_icon 48 { 49 background-image: url(icons_rtl.png); 50 } 51 47 52 .cke_skin_kama .cke_menuitem .cke_disabled .cke_icon 48 53 { 49 54 filter: alpha(opacity=70); /* IE */ -
_source/plugins/bidi/plugin.js
11 11 12 12 function onSelectionChange( evt ) 13 13 { 14 evt.editor.getCommand( 'bidirtl' ).setState( getState( evt.editor, evt.data.path, 'rtl' ) ); 15 evt.editor.getCommand( 'bidiltr' ).setState( getState( evt.editor, evt.data.path, 'ltr' ) ); 16 } 17 18 function getState( editor, path, dir ) 19 { 14 var editor = evt.editor, 15 path = evt.data.path; 20 16 var useComputedState = editor.config.useComputedState, 21 17 selectedElement; 22 18 … … 41 37 if ( !selectedElement || selectedElement.getName() == 'body' ) 42 38 return CKEDITOR.TRISTATE_OFF; 43 39 44 selectedElement= useComputedState ?40 var selectionDir = useComputedState ? 45 41 selectedElement.getComputedStyle( 'direction' ) : 46 42 selectedElement.getStyle( 'direction' ) || selectedElement.getAttribute( 'dir' ); 47 43 48 return ( selectedElement == dir ) ? 49 CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF; 44 editor.getCommand( 'bidirtl' ).setState( selectionDir == 'rtl' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); 45 editor.getCommand( 'bidiltr' ).setState( selectionDir == 'ltr' ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); 46 47 var chromeRoot = editor.element.getNext().getChild( 1 ); 48 49 if ( selectionDir != editor.lang.dir ) 50 chromeRoot.addClass( 'cke_mixed_dir_content' ); 51 else 52 chromeRoot.removeClass( 'cke_mixed_dir_content' ); 50 53 } 51 54 52 55 function switchDir( element, dir, editor )