Implement commands in a content-editable textarea in React/Javascript?
Thinking of emulating off of the content areas such as Notion or Obsidian, I’m attempting to design a page content component that allows for commands such as “/bold” that makes the following text bold, as well as deleting the command meaning “hello /bold” would be “hello ” once the command is submitted (‘enter’ or so).
Implement commands in a content-editable textarea in React/Javascript?
Thinking of emulating off of the content areas such as Notion or Obsidian, I’m attempting to design a page content component that allows for commands such as “/bold” that makes the following text bold, as well as deleting the command meaning “hello /bold” would be “hello ” once the command is submitted (‘enter’ or so).