fix(editor): mobile — formatting buttons no longer steal focus (toggle + no jump)
Toolbar buttons called editor.focus() on click after the tap had already
moved focus/selection out of the contenteditable field → bold/italic
could not be toggled off and the page jumped to the caret. Now
mousedown-preventDefault on the toolbar (focus stays in the editor) +
editor.focus({preventScroll:true}) + touch-action:manipulation for snappy
taps.
Co-Authored-By: Claude <noreply@…>
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.