We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c226b93 commit 1363595Copy full SHA for 1363595
js/tinymce-integration.js
@@ -50,6 +50,19 @@
50
editor.ui.registry.addIcon(name, icons[name]);
51
}
52
53
+ // @see https://github.com/backdrop-contrib/tinymce/issues/18
54
+ editor.shortcuts.add('ctrl+1', 'Jump to menubar', function () {
55
+ let menuBar = document.getElementsByClassName('tox-menubar');
56
+ if (menuBar.length) {
57
+ menuBar[0].getElementsByTagName('button')[0].focus();
58
+ }
59
+ });
60
+ editor.shortcuts.add('ctrl+2', 'Jump to toolbar', function () {
61
+ let myToolBar = document.getElementsByClassName('tox-toolbar-overlord');
62
+ if (myToolBar.length) {
63
+ myToolBar[0].getElementsByTagName('button')[0].focus();
64
65
66
});
67
};
68
0 commit comments