Changeset 4900
- Timestamp:
- 01/07/10 19:17:52 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source/plugins
- Files:
-
- 3 edited
-
floatpanel/plugin.js (modified) (1 diff)
-
listblock/plugin.js (modified) (6 diffs)
-
panel/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/plugins/floatpanel/plugin.js
r4858 r4900 257 257 } 258 258 259 iframe.$.contentWindow.focus();259 block.element.focus(); 260 260 // We need this get fired manually because of unfired focus() function. 261 261 this.allowBlur( true ); -
CKEditor/branches/features/aria/_source/plugins/listblock/plugin.js
r4858 r4900 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 … … 24 24 this.base( blockHolder ); 25 25 26 this.element.setAttribute( 'role', 'listbox' ); 27 26 28 this.multiSelect = !!multiSelect; 27 29 … … 82 84 pendingHtml.push( '<ul class=cke_panel_list>' ); 83 85 this._.started = 1; 86 this._.size = this._.size || 0; 84 87 } 85 88 … … 88 91 pendingHtml.push( 89 92 '<li id=', id, ' class=cke_panel_listItem>' + 90 '<a _cke_focus=1 hidefocus=true' +93 '<a id="', id, '_option" _cke_focus=1 hidefocus=true' + 91 94 ' title="', title || value, '"' + 92 95 ' href="javascript:void(\'', value, '\')"' + 93 ' onclick="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;">', 96 ' onclick="CKEDITOR.tools.callFunction(', this._.getClick(), ',\'', value, '\'); return false;"', 97 ' role="option"' + 98 ' aria-posinset="' + ++this._.size + '">', 94 99 html || value, 95 100 '</a>' + … … 112 117 this._.close(); 113 118 this.element.appendHtml( this._.pendingHtml.join( '' ) ); 119 120 var items = this._.items, 121 doc = this.element.getDocument(); 122 for ( var value in items ) 123 doc.getById( items[ value ] + '_option' ).setAttribute( 'aria-setsize', this._.size ); 124 delete this._.size; 125 114 126 this._.pendingHtml = []; 115 127 }, … … 174 186 this.unmarkAll(); 175 187 176 this.element.getDocument().getById( this._.items[ value ] ).addClass( 'cke_selected' ); 188 var itemId = this._.items[ value ], 189 item = this.element.getDocument().getById( itemId ); 190 item.addClass( 'cke_selected' ); 191 192 this.element.getDocument().getById( itemId + '_option' ).setAttribute( 'aria-selected', true ); 193 this.element.setAttribute( 'aria-activedescendant', itemId + '_option' ); 177 194 }, 178 195 -
CKEditor/branches/features/aria/_source/plugins/panel/plugin.js
r4896 r4900 248 248 attributes : 249 249 { 250 'tabIndex' : -1, 250 251 'class' : 'cke_panel_block' 251 252 },
Note: See TracChangeset
for help on using the changeset viewer.
