Setup custom plugin that colors text based on regex match #861
Unanswered
samballa07
asked this question in
Q&A
Replies: 1 comment
-
|
Got this custom plugin to work for me: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a use case that I think will require a custom plugin, but am having trouble setting it up.
I need the editor to dynamically change text color depending on if it matches a regex and only the text that matches the regex should be colored. It seems the Lexical dom is wiping out any html modifications I make to the editor html. To be clear, this is purely for user visualization as they edit content in the editor and i dont need custom markdown for colors. Could someone help point me in the right direction to get this solution
Beta Was this translation helpful? Give feedback.
All reactions