Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colorise Specific Words while Typing #201

Open
xErik opened this issue Oct 9, 2016 · 0 comments
Open

Colorise Specific Words while Typing #201

xErik opened this issue Oct 9, 2016 · 0 comments

Comments

@xErik
Copy link

xErik commented Oct 9, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant