-
|
As already mentioned in another post, there is the need of inlining the style instead class names. @trueadm said to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Yea so you'd just set up a MutationListener for whatever node types you care about, then you'd get their associated DOM nodes using LexicalEditor.getElementByKey and apply styles directly to them using DOM APIs like element.style = whatever |
Beta Was this translation helpful? Give feedback.
Add it in a plugin: https://lexical.dev/docs/react/plugins