Fix the issue where applying a highlight in the Squarespace editor causes the page to scroll to the top and lose focus.

🐞 Current behavior

  • When a user selects text and applies a highlight, the editor scrolls to the top.

  • The user loses focus on the edited content.

  • This disrupts editing flow, especially on long pages.

✅ Expected behavior

  • After applying a highlight:

  • Scroll position remains unchanged.

  • Focus stays on the edited text.

  • No unnecessary re-render of the editor.

🔧 Technical notes

  • Likely caused by a full re-render or a forced window.scrollTo(0, 0) call.

  • Or prevent the editor from reloading the entire DOM when applying inline styles.

🧩 Acceptance criteria

  • No scroll-to-top after applying highlight.

  • Cursor remains in place for continued editing.

  • Works across all text block types.

  • No regressions on other styling actions (bold, italic, etc.).