You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: Add container.focus() and correct DOMParser node import
Two bugs in the execCommand clipboard approach:
1. Missing container.focus() — without focus, execCommand copies from the
active editor (raw markdown) instead of our hidden container (formatted HTML)
2. Appending parsed.body (HTMLBodyElement) to a div is invalid DOM and gets
silently dropped; import parsed.body.childNodes instead
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>