How to get all the nodes of an editor's state with customPlugin ? #4903
Unanswered
Michael-indochat
asked this question in
Q&A
Replies: 3 comments
-
At present, my judgment is that I can get AllNode, and judge whether each node is a mentionNode |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use
|
Beta Was this translation helpful? Give feedback.
0 replies
-
There's also |
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.
-
I want to create a plugin that can retrieve the updated information of all nodes each time I make changes in the editor. My goal is to perform a character count of these nodes, while excluding special nodes called "mentionNode."
For instance, if there's a sentence in the editor that says "Hello, @FriendName," where "@FriendName" is a mentionNode,
I want to calculate the character count while disregarding this node.
Instead, I would only count the characters in the "Hello," part of the text.
Beta Was this translation helpful? Give feedback.
All reactions