-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Annotate the word "generally" in useEffect()
#1
Comments
This is challenging
|
1. How to create the commandNeed a dev mode, once turned on
2. How to locate the word by the commandWe can locate the words by
https://developer.mozilla.org/en-US/docs/Web/API/Selection 3. How to modify the DOMThe words might span across different child nodes. We can use BFS to wrap the word parts in If words are within same container node, https://developer.mozilla.org/en-US/docs/Web/API/Range/surroundContents this API could be useful. Example modification could be
4. How to make it idempotentOnce DOM is modified, next time when we locate the words, we can check if the child nodes detected are already wrapped with classes prefixed with 5. What if the path doesn't work
#4 this crob job is to validate the command periodically. |
The text was updated successfully, but these errors were encountered: