Will it be possible to use em instead of px for font size? #2932
-
I'm working on project where I need to display the content of the text editor as a smaller preview. However I'm thinking if I the rich text editor was able to use em instead of px for the font sizes (and anything else that uses px). Then all I would have to do for the preview is to scale down the base font of the editor accordingly and then everything else would just be correct? Is that a good idea and is/will it be possible with Lexical? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It seems like a sensible way of creating a preview, and yes, this should be possible with Lexical. You have full access to the |
Beta Was this translation helpful? Give feedback.
It seems like a sensible way of creating a preview, and yes, this should be possible with Lexical.
You have full access to the
theme
of the editor. There are no inherent CSS styles, and you can size the different node types as you see fit, including usingfont-size
.