Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My favorite feature of editors like TinyMCE is that you can press [CTRL]+[B] and the text will automatically become bold. Any chance this will get into a build at some point?
Comments
Comment #1
Poetro CreditAttribution: Poetro commentedThose have a quite good chance to get into the code. If you have some recommendations on the key codes, I would appreciate those.
Comment #2
IceCreamYou CreditAttribution: IceCreamYou commentedOkay.
[CTRL]+[B] - Bold
[CTRL]+[I] - Italic
[CTRL]+[U] - Underline
[CTRL]+[=] - subscript
[CTRL]+[SHIFT]+[=] - superscript
[CTRL]+[K] - link
[CTRL]+[J] - unlink
[CTRL]+[Z] - undo
[CTRL]+[Y] - redo
[CTRL]+[M] - image
[TAB] - indent
[SHIFT]+[TAB] - outdent
[CTRL]+[1] - numbered list
[CTRL]+[SHIFT]+[8] - bulleted list
[CTRL]+[H] - HTML
[CTRL]+[X] - cut
[CTRL]+[C] - copy
[CTRL]+[V] - paste
[CTRL]+[L] - left align
[CTRL]+[R] - right align
[CTRL]+[E] - center align
[CTRL]+[W] - justify
I think that's it. Of course, you don't have to use all of them. These are relatively standard and in most cases shouldn't be already mapped by the browser - or at least, shouldn't be mapped to anything that needs to be used while the textarea is in focus.
As a bonus, you could allow admin to re-map the keys.