Replies: 3 comments
|
I have been wondering the same thing. One way that I saw would be to assign a class name to the paragraph type in the EditorConfig theme property . Then you can use that class name in CSS to apply styles. |
0 replies
|
may be it should work ? |
0 replies
|
This is what I am using to set line height as style, You can implement the same for other styles LineHeightNode.js Trigger applyLineHeight() on button click |
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've been reading the documentation and other Q&A and issues and haven't really found out a way to set the style for ParagraphNode, is there a mechanism or approach I can take to force a specific style on the ParagraphNode without having to create a new CustomParagraphNode?
E.g. If I have a ParagraphNode with a TextNode:
Is there a way for me to insert a dynamic
line-heightto the Paragraph tag and have something like:Is there a function like setFormat or setIndent that could help me update the lineHeight of the entire parent node?
All reactions