$wrapNodes to TextNode #5611
Unanswered
DeadMonstr
asked this question in
Q&A
Replies: 1 comment 5 replies
-
|
Beta Was this translation helpful? Give feedback.
5 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.
-
Hello everyone, I need $wrapNodes func to be worked on TextNode.
<span className="text-bold">Hello</span>to be<span className="myClass" > <span className="text-bold">Hello</span> </span>or
<span className="text-bold myClass">Hello</span>when I added class with
const selectedItem = editor.getElementByKey(nodes[0].getKey())selectedItem.classList.add("myClass")$generateHtmlFromNodes is not generated span with my class
Thank you for answer, sorry my english :-)
Beta Was this translation helpful? Give feedback.
All reactions