Changeset 5061
- Timestamp:
- 02/08/10 18:17:41 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 1 added
- 2 edited
- 1 copied
-
lang/en.js (modified) (3 diffs)
-
plugins/a11yhelp/lang (added)
-
plugins/a11yhelp/lang/default.js (copied) (copied from CKEditor/branches/features/aria/_source/plugins/uicolor/lang/en.js) (1 diff)
-
plugins/a11yhelp/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/lang/en.js
r5060 r5061 592 592 label : 'Font', 593 593 voiceLabel : 'Font', 594 panelTitle : 'Font Name' ,594 panelTitle : 'Font Name' 595 595 }, 596 596 … … 599 599 label : 'Size', 600 600 voiceLabel : 'Font Size', 601 panelTitle : 'Font Size' ,601 panelTitle : 'Font Size' 602 602 }, 603 603 … … 705 705 706 706 toolbarCollapse : 'Collapse Toolbar', 707 toolbarExpand : 'Expand Toolbar', 708 709 accessibilityHelp : 710 { 711 title : 'Accessibility Instructions', 712 legend : 713 [ 714 { 715 name : 'General', 716 items : 717 [ 718 { 719 name : 'Editor Toolbar', 720 legend: 'Press ALT + F10 to navigate to the toolbar; Move to next toolbar button with TAB or RIGHT ARROW; Move to previous button with SHIFT+TAB or LEFT ARROW; Press SPACE or ENTER to trigger the toolbar button.' 721 }, 722 723 { 724 name : 'Editor Element Pathbar', 725 legend : 'Press ALT + F10 to navigate to the elements pathbar; Move to next element button with TAB or RIGHT ARROW; Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' 726 }, 727 728 { 729 name : 'Editor Context Menu', 730 legend : 'Press SHIFT + F10 or CTRL + SHIFT + F10 or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW; Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option.' + 731 'Open sub-menu of current option wtih SPACE or ENTER or RIGHT ARROW; Go back to parent menu item with ESC or LEFT ARROW;' + 732 'Close context menu with ESC.' 733 }, 734 735 { 736 name : 'Editor Dialog', 737 legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog.' + 738 'For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW; Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' 739 }, 740 741 { 742 name : 'Editor List Box', 743 legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW; Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' 744 } 745 ] 746 }, 747 { 748 name : 'Commands', 749 items : 750 [ 751 { 752 name : ' Undo command', 753 legend : 'Press CTRL + Z' 754 }, 755 { 756 name : ' Redo command', 757 legend : 'Press CTRL + Y or CTRL + SHIFT + Y' 758 }, 759 { 760 name : ' Bold command', 761 legend : 'Press CTRL + B' 762 }, 763 { 764 name : ' Italic command', 765 legend : 'Press CTRL + I' 766 }, 767 { 768 name : ' Underline command', 769 legend : 'Press CTRL + U' 770 }, 771 { 772 name : ' Link command', 773 legend : 'Press CTRL + L' 774 }, 775 { 776 name : ' Toolbar Collapse command', 777 legend : 'Press ALT + -' 778 } 779 ] 780 } 781 ] 782 } 707 toolbarExpand : 'Expand Toolbar' 783 708 }; -
CKEditor/branches/features/aria/_source/plugins/a11yhelp/lang/default.js
r5053 r5061 4 4 */ 5 5 6 CKEDITOR.plugins.setLang( ' uicolor', 'en',6 CKEDITOR.plugins.setLang( 'a11yhelp', 'en', 7 7 { 8 uicolor:8 accessibilityHelp : 9 9 { 10 title : 'UI Color Picker', 11 preview : 'Live preview', 12 config : 'Paste this string into your config.js file', 13 predefined : 'Predefined color sets' 10 title : 'Accessibility Instructions', 11 legend : 12 [ 13 { 14 name : 'General', 15 items : 16 [ 17 { 18 name : 'Editor Toolbar', 19 legend: 'Press ALT + F10 to navigate to the toolbar; Move to next toolbar button with TAB or RIGHT ARROW; Move to previous button with SHIFT+TAB or LEFT ARROW; Press SPACE or ENTER to trigger the toolbar button.' 20 }, 21 22 { 23 name : 'Editor Element Pathbar', 24 legend : 'Press ALT + F10 to navigate to the elements pathbar; Move to next element button with TAB or RIGHT ARROW; Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor.' 25 }, 26 27 { 28 name : 'Editor Context Menu', 29 legend : 'Press SHIFT + F10 or CTRL + SHIFT + F10 or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW; Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option.' + 30 'Open sub-menu of current option wtih SPACE or ENTER or RIGHT ARROW; Go back to parent menu item with ESC or LEFT ARROW;' + 31 'Close context menu with ESC.' 32 }, 33 34 { 35 name : 'Editor Dialog', 36 legend : 'Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog.' + 37 'For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW; Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page.' 38 }, 39 40 { 41 name : 'Editor List Box', 42 legend : 'Inside a list-box, move to next list item with TAB OR DOWN ARROW; Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box.' 43 } 44 ] 45 }, 46 { 47 name : 'Commands', 48 items : 49 [ 50 { 51 name : ' Undo command', 52 legend : 'Press CTRL + Z' 53 }, 54 { 55 name : ' Redo command', 56 legend : 'Press CTRL + Y or CTRL + SHIFT + Y' 57 }, 58 { 59 name : ' Bold command', 60 legend : 'Press CTRL + B' 61 }, 62 { 63 name : ' Italic command', 64 legend : 'Press CTRL + I' 65 }, 66 { 67 name : ' Underline command', 68 legend : 'Press CTRL + U' 69 }, 70 { 71 name : ' Link command', 72 legend : 'Press CTRL + L' 73 }, 74 { 75 name : ' Toolbar Collapse command', 76 legend : 'Press ALT + -' 77 } 78 ] 79 } 80 ] 14 81 } 15 82 }); -
CKEditor/branches/features/aria/_source/plugins/a11yhelp/plugin.js
r5059 r5061 12 12 init : function( editor ) 13 13 { 14 var command = new CKEDITOR.dialogCommand( 'a11yHelp' ); 15 command.modes = { wysiwyg:1, source:1 }; 16 command.canUndo = false; 14 var plugin = this, 15 pluginLang = ( plugin.lang = [] ); 17 16 18 editor.addCommand( 'a11yHelp', command ); 17 editor.addCommand( 'a11yHelp', 18 { 19 exec : function() 20 { 21 CKEDITOR.scriptLoader.load( CKEDITOR.getUrl( plugin.path + 'lang/default.js' ), function() 22 { 23 CKEDITOR.tools.extend( editor.lang, pluginLang[ editor.langCode ] || pluginLang[ 'en' ] ); 24 editor.openDialog( 'a11yHelp' ); 25 }) ; 26 }, 27 modes : { wysiwyg:1, source:1 }, 28 canUndo : false 29 } ); 30 19 31 CKEDITOR.dialog.add( 'a11yHelp', this.path + 'dialogs/a11yhelp.js' ); 20 32 }
Note: See TracChangeset
for help on using the changeset viewer.
