Replies: 2 comments 1 reply
|
So I've updated the code a bit to view logs. In the headingNode log I can see that indeed it is of type HeadingNode. However when I immediately hit the same button again with the same text selected I get back that it is a TextNode. I'm not understanding why? |
0 replies
|
Any progress on this post? I'm attempting the same functionality, but |
1 reply
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.
Please note I'm not referring to historical undo. I mean selecting some text putting a styling on it; continuing to work; and then some time later deciding to undo that prior format/style on the text.
Right now I'm able to set $createHeadingNode to make something a heading, is there an equivalent reverser or perhaps a $createPlainText or something like it? Here's some code where I attempt this but $isHeadingNode always returns false even after using $createHeadingNode to create the header.
All reactions