Pull request (OPEN) · PR #1013 fix(frontend): focus the editor through CodeMirror so mobile keeps its toolbar icons · @rmdes
Fixes #1012
The label click now focuses the editor with editor.codemirror.focus(), which works for both of CodeMirror’s input styles, instead of looking up .CodeMirror textarea, which does not exist on mobile and made getElement throw before the toolbar icons were swapped in.
Adds the first test for the textarea component: it mounts the editor with a mobile user agent and checks every toolbar button gets its icon. It fails on main with No element matching .CodeMirror textarea. To load the component under Node, its get-element import gains the .js extension its other import already has.