Changeset 4902
- Timestamp:
- 01/08/10 10:22:40 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 8 edited
-
lang/en.js (modified) (1 diff)
-
plugins/floatpanel/plugin.js (modified) (1 diff)
-
plugins/font/plugin.js (modified) (1 diff)
-
plugins/format/plugin.js (modified) (1 diff)
-
plugins/listblock/plugin.js (modified) (1 diff)
-
plugins/panel/plugin.js (modified) (2 diffs)
-
plugins/richcombo/plugin.js (modified) (2 diffs)
-
plugins/stylescombo/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/lang/en.js
r4899 r4902 531 531 { 532 532 label : 'Styles', 533 panelTitle : 'Formatting Styles', 533 534 panelVoiceLabel : 'Select a style', 534 535 panelTitle1 : 'Block Styles', -
CKEditor/branches/features/aria/_source/plugins/floatpanel/plugin.js
r4900 r4902 238 238 } ); 239 239 240 // Set the panel frame focus, so the blur event gets fired. 241 block.element.focus(); 242 // We need this get fired manually because of unfired focus() function. 243 this.allowBlur( true ); 244 240 245 } , this ); 241 246 242 247 panel.isLoaded ? panelLoad() : panel.onLoad = panelLoad; 243 248 244 // Set the panel frame focus, so the blur event gets fired.245 CKEDITOR.tools.setTimeout( function()246 {247 if ( definition.voiceLabel )248 {249 if ( CKEDITOR.env.gecko )250 {251 var container = iframe.getParent();252 container.setAttribute( 'role', 'region' );253 container.setAttribute( 'title', definition.voiceLabel );254 iframe.setAttribute( 'role', 'region' );255 iframe.setAttribute( 'title', ' ' );256 }257 }258 259 block.element.focus();260 // We need this get fired manually because of unfired focus() function.261 this.allowBlur( true );262 263 }, 0, this);264 249 }, 0, this); 265 250 this.visible = 1; -
CKEditor/branches/features/aria/_source/plugins/font/plugin.js
r4858 r4902 31 31 label : lang.label, 32 32 title : lang.panelTitle, 33 voiceLabel : lang.voiceLabel,34 33 className : 'cke_' + ( styleType == 'size' ? 'fontSize' : 'font' ), 35 multiSelect : false,36 37 34 panel : 38 35 { 39 36 css : editor.skin.editor.css.concat( config.contentsCss ), 40 voiceLabel : lang.panelVoiceLabel 37 multiSelect : false, 38 aria : { 'aria-label' : lang.panelTitle, 'aria-describedby' : lang.panelVoiceLabel } 41 39 }, 42 40 -
CKEditor/branches/features/aria/_source/plugins/format/plugin.js
r4858 r4902 28 28 label : lang.label, 29 29 title : lang.panelTitle, 30 voiceLabel : lang.voiceLabel,31 30 className : 'cke_format', 32 multiSelect : false,33 34 31 panel : 35 32 { 36 33 css : editor.skin.editor.css.concat( config.contentsCss ), 37 voiceLabel : lang.panelVoiceLabel 34 multiSelect : false, 35 aria : { 'aria-label' : lang.panelTitle, 'aria-describedby' : lang.panelVoiceLabel } 38 36 }, 39 37 -
CKEditor/branches/features/aria/_source/plugins/listblock/plugin.js
r4900 r4902 19 19 base : CKEDITOR.ui.panel.block, 20 20 21 $ : function( blockHolder, multiSelect)21 $ : function( blockHolder, blockDefinition ) 22 22 { 23 blockDefinition = blockDefinition || {}; 24 25 var aria = blockDefinition.aria || ( blockDefinition.aria = {} ); 26 ( this.multiSelect = !!blockDefinition.multiSelect ) && 27 ( aria[ 'aria-multiselectable' ] = true ); 28 // Provide default role of 'listbox'. 29 !aria.role && ( aria.role = 'listbox' ); 30 23 31 // Call the base contructor. 24 this.base( blockHolder ); 25 26 this.element.setAttribute( 'role', 'listbox' ); 27 28 this.multiSelect = !!multiSelect; 32 this.base.apply( this, arguments ); 29 33 30 34 var keys = this.keys; -
CKEditor/branches/features/aria/_source/plugins/panel/plugin.js
r4900 r4902 241 241 CKEDITOR.ui.panel.block = CKEDITOR.tools.createClass( 242 242 { 243 $ : function( blockHolder )243 $ : function( blockHolder, blockDefinition ) 244 244 { 245 245 this.element = blockHolder.append( … … 256 256 } 257 257 }) ); 258 259 blockDefinition = blockDefinition || {}; 260 var aria = blockDefinition.aria; 261 aria && this.element.setAttributes( aria ); 258 262 259 263 this.keys = {}; -
CKEditor/branches/features/aria/_source/plugins/richcombo/plugin.js
r4898 r4902 45 45 46 46 panelDefinition.className = ( panelDefinition.className || '' ) + ' cke_rcombopanel'; 47 panelDefinition.block = 48 { 49 multiSelect : panelDefinition.multiSelect, 50 aria : panelDefinition.aria 51 }; 47 52 48 53 this._ = … … 206 211 if ( this._.panel ) 207 212 return; 208 213 209 214 var panelDefinition = this._.panelDefinition, 215 panelBlockDefinition = this._.panelDefinition.block, 210 216 panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), 211 217 panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), 212 list = panel.addListBlock( this.id, this.multiSelect),218 list = panel.addListBlock( this.id, panelBlockDefinition ), 213 219 me = this; 214 220 -
CKEditor/branches/features/aria/_source/plugins/stylescombo/plugin.js
r4858 r4902 21 21 label : lang.label, 22 22 title : lang.panelTitle, 23 voiceLabel : lang.voiceLabel,24 23 className : 'cke_styles', 25 multiSelect : true,26 24 27 25 panel : 28 26 { 29 27 css : editor.skin.editor.css.concat( config.contentsCss ), 30 voiceLabel : lang.panelVoiceLabel 28 multiSelect : true, 29 aria : { 'aria-label' : lang.panelTitle, 'aria-describedby' : lang.panelVoiceLabel } 31 30 }, 32 31
Note: See TracChangeset
for help on using the changeset viewer.
