Forgotten 95f0d36adc Fix @-mention tab completion cursor positioning
After tab-completing a mention, the cursor was placed before the
completion instead of after it. The root cause: Lexical's DOM
reconciliation after document.execCommand("insertText") would lose
the browser-set cursor position. Added requestAnimationFrame-based
cursor repositioning that first tries the original text node, then
falls back to searching for the mention text in the DOM.

Also normalizes editor content padding for consistent mention dropdown
positioning.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:07:37 -06:00
2026-02-20 15:48:07 -06:00
2026-02-19 09:09:10 -06:00
Description
Paperclip AI platform
MIT 11 MiB
Languages
TypeScript 96.8%
Shell 1.7%
JavaScript 1%
CSS 0.3%
HTML 0.2%