The headless editor framework for web artisans.
Take a look at TipTap... it has a "suggestion" plugin that you can customize and I believe it would do what you're looking for. I've used TipTap in several projects and it's been great to use, however I have not used the suggestion plugin yet.
Need a feature-rich text-editor
1 project | reddit.com/r/webdev | 24 May 2022
Looking for a text editor that is easy to setup and works easily using Firestore (Firebase)
1 project | reddit.com/r/react | 4 May 2022
How I implemented Google docs like commenting in Tiptap
4 projects | dev.to | 3 Apr 2022
Building consumer site with content addition capability
1 project | reddit.com/r/nextjs | 16 Mar 2022
Wysiwyg editor with Nuxt.js
1 project | dev.to | 24 Jan 2022