You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to colorise a specific group of words (house, mouse, ...) in a specific color (red).
Another word group (tree, apple, ...) should be coloured differently (green).
I'd like to checks the words for colouring while typing with the keyup() event.
(keyup() will get debounced for some milliseconds.)
I gave it a shoot by using medium.value(colorizedString)but this causes the caret to jump around.
What would be the appropriate way to achieve this elegantly with Medium?
The text was updated successfully, but these errors were encountered:
Hello!
I like to colorise a specific group of words (house, mouse, ...) in a specific color (red).
Another word group (tree, apple, ...) should be coloured differently (green).
I'd like to checks the words for colouring while typing with the
keyup()
event.(
keyup()
will get debounced for some milliseconds.)I gave it a shoot by using
medium.value(colorizedString)
but this causes the caret to jump around.What would be the appropriate way to achieve this elegantly with Medium?
The text was updated successfully, but these errors were encountered: