Text Format Flags on DecoratorBlockNode (or DecoratorNode) #4971
srinivasskeme
started this conversation in
General
Replies: 1 comment 1 reply
-
It would be nice to combine TextNode with DecoratorNode, is that possible? |
Beta Was this translation helpful? Give feedback.
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.
-
I have a TagNode with the following requirements.
Because of these two requirements,
DecoratorBlockNode
seems like the correct choice.However, I also need to have text format features (like bold, italic etc.) on the tag node. I have the following solutions in mind but I am unsure if they work.
Solution 1:
TagNode
(__textFormatFlags
,__textStyle
)FORMAT_TEXT_COMMAND
and ensure bothTextNode
andTagNode
are updated (bold, italic etc.)$patchStyleText
to handle (font-size
,font-family
etc.) forTextNode
andTagNode
Solution 2:
TagNode
in disabled modeSolution 1
to update text nodes within nested editorWhat is the better solution and are there any gotchas that I am overlooking?
Beta Was this translation helpful? Give feedback.
All reactions