Changeset 4914
- Timestamp:
- 01/12/10 13:01:38 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 2 edited
-
lang/en.js (modified) (1 diff)
-
plugins/dialog/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/lang/en.js
r4913 r4914 33 33 */ 34 34 editorTitle : 'Rich text editor, %1', 35 editorWysiwygModeVoiceLabel : 'Wysiwyg mode, press ALT+F10 moves to toolbar, ALT+F11 moves to elementspath bar .SHIFT+F10 opens contextmenu.',35 editorWysiwygModeVoiceLabel : 'Wysiwyg mode, press ALT+F10 moves to toolbar, ALT+F11 moves to elementspath bar, SHIFT+F10 opens contextmenu.', 36 36 editorSourceModeVoiceLabel : 'Source mode, press ALT+F10 moves to toolbar.', 37 dialogVoiceLabel : 'Press Esc to close dialog, enter to submit dialog, ALT+F10 moves to tab list.', 37 38 38 39 // Toolbar buttons without dialogs. -
CKEditor/branches/features/aria/_source/plugins/dialog/plugin.js
r4911 r4914 136 136 this.parts = themeBuilt.parts; 137 137 138 var dialogPart = this.parts.dialog, 139 contentsPart = this.parts.contents, 140 titleId = this.parts.title.$.id, 141 descriptiveLabelId = titleId.replace( 'title', 'desc' ), 142 descriptiveLabel = CKEDITOR.dom.element.createFromHtml( '<label id="' + descriptiveLabelId + '" style="display:none">' + editor.lang.dialogVoiceLabel+ '</label>' ); 143 144 descriptiveLabel.insertAfter( contentsPart ); 145 contentsPart.setAttributes( 146 { 147 'role' : 'dialog', 148 'aria-labelledby' : titleId, 149 'aria-describedby' : descriptiveLabelId 150 } ); 151 138 152 // Set the startup styles for the dialog, avoiding it enlarging the 139 153 // page size on the dialog creation. 140 this.parts.dialog.setStyles(154 dialogPart.setStyles( 141 155 { 142 156 position : CKEDITOR.env.ie6Compat ? 'absolute' : 'fixed',
Note: See TracChangeset
for help on using the changeset viewer.
