[lexical] How can the colored text appear on the frontend / post? #14273
Unanswered
Memi-Adidaya
asked this question in
Q&A
Replies: 1 comment
-
|
i also have the same question |
Beta Was this translation helpful? Give feedback.
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.
-
I added this:
TextStateFeature({ state: { color: { ...defaultColors.text, }, background: { ...defaultColors.background, }, }, })in defaultLexical.ts.
In the editor, the toolbar appears and I can apply colors to the text.
However, after publishing successfully, the colors do not appear on the frontend in the edited areas.
Please guide me on what I might be missing. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions