Tagged articles
1 articles
Page 1 of 1
vivo Internet Technology
vivo Internet Technology
Jun 3, 2026 · Frontend Development

How to Build a Stable @Document Mention Input with ProseMirror

This article walks through implementing an @document mention feature for a knowledge‑base Q&A input box, comparing a naïve contenteditable approach with a ProseMirror‑based solution, detailing schema design, plugin and suggestion handling, and the stability challenges of cursor, IME, and undo/redo.

PluginProseMirrordecoration
0 likes · 12 min read
How to Build a Stable @Document Mention Input with ProseMirror