Changeset 5838
- Timestamp:
- 08/23/10 13:17:36 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 3 added
- 15 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/bidi/plugin.js (modified) (2 diffs)
-
_source/plugins/menu/plugin.js (modified) (1 diff)
-
_source/skins/kama/icons.css (modified) (2 diffs)
-
_source/skins/kama/icons.png (modified) (previous)
-
_source/skins/kama/icons_rtl.png (added)
-
_source/skins/kama/menu.css (modified) (1 diff)
-
_source/skins/kama/toolbar.css (modified) (1 diff)
-
_source/skins/office2003/icons.css (modified) (2 diffs)
-
_source/skins/office2003/icons.png (modified) (previous)
-
_source/skins/office2003/icons_rtl.png (added)
-
_source/skins/office2003/menu.css (modified) (1 diff)
-
_source/skins/office2003/toolbar.css (modified) (1 diff)
-
_source/skins/v2/icons.css (modified) (2 diffs)
-
_source/skins/v2/icons.png (modified) (previous)
-
_source/skins/v2/icons_rtl.png (added)
-
_source/skins/v2/menu.css (modified) (1 diff)
-
_source/skins/v2/toolbar.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5836 r5838 52 52 <li><a href="http://dev.ckeditor.com/ticket/5956">#5956</a> : [FF] It was impossible to create an editor inside an hidden container.</li> 53 53 <li><a href="http://dev.ckeditor.com/ticket/5753">#5753</a> : It was impossible to have a default value for the name field in the select dialog.</li> 54 <li><a href="http://dev.ckeditor.com/ticket/6041">#6041</a> : BIDI: Direction of Increase Indent & Decrease Indent icons are not reversed after changing Lang direction to RTL.</li> 54 55 </ul> 55 56 <h3> -
CKEditor/trunk/_source/plugins/bidi/plugin.js
r5812 r5838 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; … … 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.container.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 -
CKEditor/trunk/_source/plugins/menu/plugin.js
r5206 r5838 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, -
CKEditor/trunk/_source/skins/kama/icons.css
r5812 r5838 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 { … … 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 { -
CKEditor/trunk/_source/skins/kama/menu.css
r5245 r5838 43 43 height: 16px; 44 44 float: left; 45 } 46 47 .cke_rtl .cke_skin_kama .cke_menuitem .cke_icon 48 { 49 background-image: url(icons_rtl.png); 45 50 } 46 51 -
CKEditor/trunk/_source/skins/kama/toolbar.css
r5780 r5838 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 } -
CKEditor/trunk/_source/skins/office2003/icons.css
r5812 r5838 249 249 } 250 250 251 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon 252 { 253 background-position: 0 -1217px; 254 } 255 256 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon 257 { 258 background-position: 0 -1233px; 259 } 260 251 261 .cke_skin_office2003 .cke_button_outdent .cke_icon 252 262 { … … 259 269 } 260 270 271 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_indent .cke_icon 272 { 273 background-position: 0 -1265px; 274 } 275 276 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_outdent .cke_icon 277 { 278 background-position: 0 -1249px; 279 } 280 261 281 .cke_skin_office2003 .cke_button_justifyleft .cke_icon 262 282 { -
CKEditor/trunk/_source/skins/office2003/menu.css
r5319 r5838 43 43 height: 16px; 44 44 float: left; 45 } 46 47 .cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon 48 { 49 background-image: url(icons_rtl.png); 45 50 } 46 51 -
CKEditor/trunk/_source/skins/office2003/toolbar.css
r5780 r5838 309 309 } 310 310 311 .cke_skin_office2003 .cke_rtl .cke_button .cke_icon 312 { 313 background-image: url(icons_rtl.png); 314 } 315 311 316 .cke_skin_office2003 .cke_button .cke_label 312 317 { -
CKEditor/trunk/_source/skins/v2/icons.css
r5812 r5838 249 249 } 250 250 251 .cke_skin_v2 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon 252 { 253 background-position: 0 -1217px; 254 } 255 256 .cke_skin_v2 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon 257 { 258 background-position: 0 -1233px; 259 } 260 251 261 .cke_skin_v2 .cke_button_outdent .cke_icon 252 262 { … … 259 269 } 260 270 271 .cke_skin_v2 .cke_mixed_dir_content .cke_button_indent .cke_icon 272 { 273 background-position: 0 -1265px; 274 } 275 276 .cke_skin_v2 .cke_mixed_dir_content .cke_button_outdent .cke_icon 277 { 278 background-position: 0 -1249px; 279 } 280 261 281 .cke_skin_v2 .cke_button_justifyleft .cke_icon 262 282 { -
CKEditor/trunk/_source/skins/v2/menu.css
r5319 r5838 42 42 height: 16px; 43 43 float: left; 44 } 45 46 .cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon 47 { 48 background-image: url(icons_rtl.png); 44 49 } 45 50 -
CKEditor/trunk/_source/skins/v2/toolbar.css
r5780 r5838 282 282 } 283 283 284 .cke_skin_v2 .cke_rtl .cke_button .cke_icon 285 { 286 background-image: url(icons_rtl.png); 287 } 288 284 289 .cke_skin_v2 .cke_button .cke_label 285 290 {
Note: See TracChangeset
for help on using the changeset viewer.
