Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.
19.95k
stars
1.7k
forks
source link
Bug: How can i add className insted of style property in dispatchCommand for text alignment #6850
Open
MahmoudAdel9 opened 2 days ago
How to add add className insted of style property in dispatchCommand for text alignment
this is my code case RichTextAction.LeftAlign: { editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, 'left'); break; }