**Related wish: [[ https://meta.wikimedia.org/wiki/Community_Wishlist/W141 | W141: Editing mathematics is too difficult ]]**
One idea we had was to add a keyboard shortcut and toolbar button to insert `<math></math>` and put the cursor in the middle. This should reduce the manual strain of having to type `<math>` over and over. This seems pretty useful and non-controversial.
**Acceptance criteria**
If the #math extension is installed:
* The #WikiEditor toolbar should have a "Math formula" button in the "Insert" group of the "Advanced" section. It should have the keyboard shortcut `Ctrl-m` (or `Command-m` on Mac).
* #CodeMirror should also respect `Ctrl-m` (or `Command-m` on Mac) and have the keyboard shortcut documented in the help dialog (available by pressing `Ctrl-Shift-/` (or `Cmd-Shift-/` on Mac).
Clicking on the button or using the keyboard shortcut should insert `<math></math>` and place the cursor in between the opening and closing tags.