Repository navigation
Content Preview #1825
Answered
by
trueadm
bluebill1049
asked this question in
Q&A
Content Preview
#1825
|
Thanks for the awesome work. I was wondering what's the best way to generate a preview? <RichTextPlugin
placeholder={null}
- contentEditable={<ContentEditable className={styles.editorInput} />}
+ contentEditable={null} // so it will just render the content
/>is it possible for |
Answered by
trueadm
Apr 17, 2022
Replies: 1 comment 18 replies
|
You can |
18 replies
Answer selected by
bluebill1049
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can
readOnlyon the editor itself to betrue. This can be done oninitialConfigpassed toLexicalComposertoo, or by doingeditor.setReadOnly(true).