How to achieve color highlighting when the user enters certain characters, for example, when entering {{xx}}, the curly brackets and the content in the curly brackets are highlighted #5523
-
vue 3 project: How to achieve color highlighting when the user enters certain characters, for example, when entering {{xx}}, the curly brackets and the content in the curly brackets are highlighted |
Beta Was this translation helpful? Give feedback.
Answered by
nperez0111
Aug 20, 2024
Replies: 1 comment 1 reply
-
You would want to look at Input Rules https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
nperez0111
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You would want to look at Input Rules https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#input-rules
& you would wrap that content in a custom mark or something so you can identify that content as needing highlighting