Changeset 4896
- Timestamp:
- 01/07/10 08:16:17 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 5 edited
-
lang/en.js (modified) (4 diffs)
-
plugins/button/plugin.js (modified) (4 diffs)
-
plugins/panel/plugin.js (modified) (1 diff)
-
plugins/richcombo/plugin.js (modified) (5 diffs)
-
themes/default/theme.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/lang/en.js
r4858 r4896 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 … … 93 93 validateNumberFailed : 'This value is not a number.', 94 94 confirmNewPage : 'Any unsaved changes to this content will be lost. Are you sure you want to load new page?', 95 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?', 96 97 // Put the voice-only part of the label in the span. 98 unavailable : '%1<span class="cke_accessibility">, unavailable</span>' 95 confirmCancel : 'Some of the options have been changed. Are you sure to close the dialog?' 99 96 }, 100 97 … … 533 530 { 534 531 label : 'Styles', 535 voiceLabel : 'Styles',536 532 panelVoiceLabel : 'Select a style', 537 533 panelTitle1 : 'Block Styles', … … 543 539 { 544 540 label : 'Format', 545 voiceLabel : 'Format',546 541 panelTitle : 'Paragraph Format', 547 542 panelVoiceLabel : 'Select a paragraph format', -
CKEditor/branches/features/aria/_source/plugins/button/plugin.js
r4858 r4896 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 … … 138 138 ' title="', this.title, '"' + 139 139 ' tabindex="-1"' + 140 ' hidefocus="true"' ); 140 ' hidefocus="true"' + 141 ' role="button"' + 142 ' aria-labelledby="' + id + '_label"' ); 141 143 142 144 // Some browsers don't cancel key events in the keydown but in the … … 171 173 output.push( 172 174 '></span>' + 173 '<span class="cke_label">', this.label, '</span>' );175 '<span id="', id, '_label" class="cke_label">', this.label, '</span>' ); 174 176 175 177 if ( this.hasArrow ) … … 199 201 { 200 202 element.setState( state ); 201 202 var htmlTitle = this.title, 203 unavailable = this._.editor.lang.common.unavailable, 204 labelElement = element.getChild( 1 ); 205 206 if ( state == CKEDITOR.TRISTATE_DISABLED ) 207 htmlTitle = unavailable.replace( '%1', this.title ); 208 209 labelElement.setHtml( htmlTitle ); 203 state == CKEDITOR.TRISTATE_DISABLED ? 204 element.setAttribute( 'aria-disabled', true ) : 205 element.removeAttribute( 'aria-disabled' ); 210 206 } 211 207 -
CKEditor/branches/features/aria/_source/plugins/panel/plugin.js
r4858 r4896 156 156 '</head>' + 157 157 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' + 158 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');" >' +159 ' </body>' +158 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"' + 159 ' role="application"></body>' + 160 160 // It looks strange, but for FF2, the styles must go 161 161 // after <body>, so it (body) becames immediatelly -
CKEditor/branches/features/aria/_source/plugins/richcombo/plugin.js
r4858 r4896 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 … … 164 164 output.push( 165 165 '>' + 166 '<span class=cke_label>', this.label, '</span>' + 167 '<a hidefocus=true title="', this.title, '" tabindex="-1" href="javascript:void(\'', this.label, '\')"' ); 166 '<span id="' + id+ '_label" class=cke_label>', this.label, '</span>' + 167 '<a hidefocus=true title="', this.title, '" tabindex="-1" href="javascript:void(\'', this.label, '\')"' + 168 ' role="button" aria-labelledby="', id ,'_label"' ); 168 169 169 170 // Some browsers don't cancel key events in the keydown but in the … … 188 189 ' onclick="CKEDITOR.tools.callFunction(', clickFn, ', this); return false;">' + 189 190 '<span>' + 190 '<span class="cke_accessibility">' + ( this.voiceLabel ? this.voiceLabel + ' ' : '' ) + '</span>' +191 191 '<span id="' + id + '_text" class="cke_text cke_inline_label">' + this.label + '</span>' + 192 192 '</span>' + … … 282 282 this._.value = value; 283 283 284 var textElement = this.document.getById( 'cke_' + this.id + '_text' ); 284 var element = this.document.getById( 'cke_' + this.id ) 285 .getElementsByTag( 'a' ).getItem( 0 ), 286 textElement = this.document.getById( 'cke_' + this.id + '_text' ); 285 287 286 288 if ( !( value || text ) ) … … 292 294 textElement.removeClass( 'cke_inline_label' ); 293 295 textElement.setHtml( typeof text != 'undefined' ? text : value ); 296 297 // Update link 'tilte' to represent the currectly selected combo value. 298 element.setAttribute( 'title', typeof text != 'undefined' ? text : value ); 294 299 }, 295 300 -
CKEditor/branches/features/aria/_source/themes/default/theme.js
r4858 r4896 120 120 ' lang="', editor.langCode, '"' + 121 121 ' tabindex="' + tabIndex + '"' + 122 ' role="application"' + 122 123 ( style ? ' style="' + style + '"' : '' ) + 123 124 '>' + … … 168 169 '" dir="', editor.lang.dir, '"' + 169 170 ' lang="', editor.langCode, '"' + 171 ' role="application"' + 170 172 '>' + 171 173 '<table class="cke_dialog', ' ' + CKEDITOR.env.cssClass,
Note: See TracChangeset
for help on using the changeset viewer.
