fix(editor): no view jump on formatting button — hold scroll position
execCommand/insert scrolls the caret into view by default → the view
jumps when clicking bold/italic/quote/code. keepScroll() saves and
restores the scroll position (window + editor, sync + after 1 frame)
around execCmd/wrapCode/toggleBlockquote. The user now scrolls manually.
Co-Authored-By: Claude <noreply@…>
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.