How can I implement automatic text highlighting as user types, like in Twitter or Hemingway editor? #2295
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
The Linter experiment might be a good starting point? https://tiptap.dev/experiments/linter |
Beta Was this translation helpful? Give feedback.
-
I did it by using setHighlight to make the highlight works like Twitter editor. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
I was able to use the For example, notice the color highlighter styling automatically applied, in the same way a linter would be:
Really clean starting point! Now edit the |
Beta Was this translation helpful? Give feedback.
The Linter experiment might be a good starting point? https://tiptap.dev/experiments/linter