Changeset 5837
- Timestamp:
- 08/23/10 13:13:51 (3 years ago)
- Location:
- CKEditor/branches/versions/3.4.x/_source
- Files:
-
- 3 deleted
- 11 edited
-
plugins/bidi/plugin.js (modified) (2 diffs)
-
plugins/menu/plugin.js (modified) (2 diffs)
-
skins/kama/icons.css (modified) (2 diffs)
-
skins/kama/icons_rtl.png (deleted)
-
skins/kama/menu.css (modified) (1 diff)
-
skins/kama/toolbar.css (modified) (1 diff)
-
skins/office2003/icons.css (modified) (2 diffs)
-
skins/office2003/icons_rtl.png (deleted)
-
skins/office2003/menu.css (modified) (1 diff)
-
skins/office2003/toolbar.css (modified) (1 diff)
-
skins/v2/icons.css (modified) (2 diffs)
-
skins/v2/icons_rtl.png (deleted)
-
skins/v2/menu.css (modified) (1 diff)
-
skins/v2/toolbar.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/versions/3.4.x/_source/plugins/bidi/plugin.js
r5833 r5837 12 12 function onSelectionChange( evt ) 13 13 { 14 var editor = evt.editor, 15 path = evt.data.path; 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 { 16 20 var useComputedState = editor.config.useComputedState, 17 21 selectedElement; … … 38 42 return CKEDITOR.TRISTATE_OFF; 39 43 40 var selectionDir= useComputedState ?44 selectedElement = useComputedState ? 41 45 selectedElement.getComputedStyle( 'direction' ) : 42 46 selectedElement.getStyle( 'direction' ) || selectedElement.getAttribute( 'dir' ); 43 47 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' ); 48 return ( selectedElement == dir ) ? 49 CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF; 53 50 } 54 51 -
CKEditor/branches/versions/3.4.x/_source/plugins/menu/plugin.js
r5833 r5837 1 /*1 /* 2 2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license … … 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 227 224 // Build the HTML that composes the menu and its items. 228 var output = [ '<div class="cke_menu ' + mixedContentClass + '" role="presentation">' ];225 var output = [ '<div class="cke_menu" role="presentation">' ]; 229 226 230 227 var length = items.length, -
CKEditor/branches/versions/3.4.x/_source/skins/kama/icons.css
r5833 r5837 249 249 } 250 250 251 .cke_skin_kama .cke_mixed_dir_content .cke_button_numberedlist .cke_icon252 {253 background-position: 0 -1217px;254 }255 256 .cke_skin_kama .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon257 {258 background-position: 0 -1233px;259 }260 261 251 .cke_skin_kama .cke_button_outdent .cke_icon 262 252 { … … 269 259 } 270 260 271 .cke_skin_kama .cke_mixed_dir_content .cke_button_indent .cke_icon272 {273 background-position: 0 -1265px;274 }275 276 .cke_skin_kama .cke_mixed_dir_content .cke_button_outdent .cke_icon277 {278 background-position: 0 -1249px;279 }280 281 261 .cke_skin_kama .cke_button_justifyleft .cke_icon 282 262 { -
CKEditor/branches/versions/3.4.x/_source/skins/kama/menu.css
r5833 r5837 43 43 height: 16px; 44 44 float: left; 45 }46 47 .cke_rtl .cke_skin_kama .cke_menuitem .cke_icon48 {49 background-image: url(icons_rtl.png);50 45 } 51 46 -
CKEditor/branches/versions/3.4.x/_source/skins/kama/toolbar.css
r5833 r5837 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_icon249 {250 245 float: right; 251 246 } -
CKEditor/branches/versions/3.4.x/_source/skins/office2003/icons.css
r5833 r5837 249 249 } 250 250 251 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon252 {253 background-position: 0 -1217px;254 }255 256 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon257 {258 background-position: 0 -1233px;259 }260 261 251 .cke_skin_office2003 .cke_button_outdent .cke_icon 262 252 { … … 269 259 } 270 260 271 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_indent .cke_icon272 {273 background-position: 0 -1265px;274 }275 276 .cke_skin_office2003 .cke_mixed_dir_content .cke_button_outdent .cke_icon277 {278 background-position: 0 -1249px;279 }280 281 261 .cke_skin_office2003 .cke_button_justifyleft .cke_icon 282 262 { -
CKEditor/branches/versions/3.4.x/_source/skins/office2003/menu.css
r5833 r5837 43 43 height: 16px; 44 44 float: left; 45 }46 47 .cke_rtl .cke_skin_office2003 .cke_menuitem .cke_icon48 {49 background-image: url(icons_rtl.png);50 45 } 51 46 -
CKEditor/branches/versions/3.4.x/_source/skins/office2003/toolbar.css
r5833 r5837 309 309 } 310 310 311 .cke_skin_office2003 .cke_rtl .cke_button .cke_icon312 {313 background-image: url(icons_rtl.png);314 }315 316 311 .cke_skin_office2003 .cke_button .cke_label 317 312 { -
CKEditor/branches/versions/3.4.x/_source/skins/v2/icons.css
r5833 r5837 249 249 } 250 250 251 .cke_skin_v2 .cke_mixed_dir_content .cke_button_numberedlist .cke_icon252 {253 background-position: 0 -1217px;254 }255 256 .cke_skin_v2 .cke_mixed_dir_content .cke_button_bulletedlist .cke_icon257 {258 background-position: 0 -1233px;259 }260 261 251 .cke_skin_v2 .cke_button_outdent .cke_icon 262 252 { … … 269 259 } 270 260 271 .cke_skin_v2 .cke_mixed_dir_content .cke_button_indent .cke_icon272 {273 background-position: 0 -1265px;274 }275 276 .cke_skin_v2 .cke_mixed_dir_content .cke_button_outdent .cke_icon277 {278 background-position: 0 -1249px;279 }280 281 261 .cke_skin_v2 .cke_button_justifyleft .cke_icon 282 262 { -
CKEditor/branches/versions/3.4.x/_source/skins/v2/menu.css
r5833 r5837 42 42 height: 16px; 43 43 float: left; 44 }45 46 .cke_rtl .cke_skin_v2 .cke_menuitem .cke_icon47 {48 background-image: url(icons_rtl.png);49 44 } 50 45 -
CKEditor/branches/versions/3.4.x/_source/skins/v2/toolbar.css
r5833 r5837 282 282 } 283 283 284 .cke_skin_v2 .cke_rtl .cke_button .cke_icon285 {286 background-image: url(icons_rtl.png);287 }288 289 284 .cke_skin_v2 .cke_button .cke_label 290 285 {
Note: See TracChangeset
for help on using the changeset viewer.
