Changeset 4909
- Timestamp:
- 01/09/10 16:53:44 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 3 edited
-
plugins/dialog/plugin.js (modified) (1 diff)
-
plugins/dialogui/plugin.js (modified) (9 diffs)
-
themes/default/theme.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/plugins/dialog/plugin.js
r4858 r4909 1938 1938 styles = ( stylesArg && stylesArg.call ? stylesArg( elementDefinition ) : stylesArg ) || {}, 1939 1939 attributes = ( attributesArg && attributesArg.call ? attributesArg( elementDefinition ) : attributesArg ) || {}, 1940 innerHTML = ( contentsArg && contentsArg.call ? contentsArg (dialog, elementDefinition ) : contentsArg ) || '',1940 innerHTML = ( contentsArg && contentsArg.call ? contentsArg.call( this, dialog, elementDefinition ) : contentsArg ) || '', 1941 1941 domId = this.domId = attributes.id || CKEDITOR.tools.getNextNumber() + '_uiElement', 1942 1942 id = this.id = elementDefinition.id, -
CKEditor/branches/features/aria/_source/plugins/dialogui/plugin.js
r4858 r4909 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 … … 136 136 '</div>', 137 137 '<div class="cke_dialog_ui_labeled_content">', 138 contentHtml (dialog, elementDefinition ),138 contentHtml.call( this, dialog, elementDefinition ), 139 139 '</div>' ); 140 140 else … … 155 155 type : 'html', 156 156 html : '<span class="cke_dialog_ui_labeled_content">' + 157 contentHtml (dialog, elementDefinition ) +157 contentHtml.call( this, dialog, elementDefinition ) + 158 158 '</span>' 159 159 } … … 243 243 244 244 html.push( '><input ' ); 245 246 attributes[ 'aria-labelledby' ] = this._.labelId; 245 247 for ( var i in attributes ) 246 248 html.push( i + '="' + attributes[i] + '" ' ); … … 335 337 id : elementDefinition.id ? elementDefinition.id + '_checkbox' : CKEDITOR.tools.getNextNumber() + '_checkbox' 336 338 }, true ), 337 html = [], 338 attributes = { 'class' : 'cke_dialog_ui_checkbox_input', type : 'checkbox' }; 339 html = []; 340 341 var labelId = CKEDITOR.tools.getNextNumber() + '_label'; 342 var attributes = { 'class' : 'cke_dialog_ui_checkbox_input', type : 'checkbox', 'aria-labelledby' : labelId }; 339 343 cleanInnerDefinition( myDefinition ); 340 344 if ( elementDefinition[ 'default' ] ) 341 345 attributes.checked = 'checked'; 342 346 _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes ); 343 html.push( ' <label for="', attributes.id, '">',347 html.push( ' <label id="', labelId, '" for="', attributes.id, '">', 344 348 CKEDITOR.tools.htmlEncode( elementDefinition.label ), 345 349 '</label>' ); … … 386 390 { 387 391 var inputHtmlList = [], html = [], 388 commonAttributes = { 'class' : 'cke_dialog_ui_radio_item' },392 commonAttributes = { 'class' : 'cke_dialog_ui_radio_item', 'aria-labelledby' : this._.labelId }, 389 393 commonName = elementDefinition.id ? elementDefinition.id + '_radio' : CKEDITOR.tools.getNextNumber() + '_radio'; 390 394 for ( var i = 0 ; i < elementDefinition.items.length ; i++ ) … … 482 486 delete outerDefinition.style; 483 487 488 var labelId = CKEDITOR.tools.getNextNumber() + '_label'; 484 489 CKEDITOR.ui.dialog.uiElement.call( 485 490 this, … … 494 499 title : elementDefinition.label, 495 500 hidefocus : 'true', 496 'class' : elementDefinition['class'] 501 'class' : elementDefinition['class'], 502 role : 'button', 503 'aria-labelledby' : labelId 497 504 }, 498 '<span class="cke_dialog_ui_button">' +505 '<span id="' + labelId + '" class="cke_dialog_ui_button">' + 499 506 CKEDITOR.tools.htmlEncode( elementDefinition.label ) + 500 507 '</span>' ); … … 544 551 html = [], 545 552 innerHTML = [], 546 attributes = { 'class' : 'cke_dialog_ui_input_select' };553 attributes = { 'class' : 'cke_dialog_ui_input_select', 'aria-labelledby' : this._.labelId }; 547 554 548 555 // Add multiple and size attributes from element definition. -
CKEditor/branches/features/aria/_source/themes/default/theme.js
r4896 r4909 172 172 '>' + 173 173 '<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass, 174 ' cke_', editor.lang.dir, '" style="position:absolute" >' +174 ' cke_', editor.lang.dir, '" style="position:absolute" role="dialog" aria-labelledby="%title#" a>' + 175 175 '<tr><td>' + 176 176 '<div class="%body">' +
Note: See TracChangeset
for help on using the changeset viewer.
