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 |
Beta Was this translation helpful? Give feedback.
Answered by
trueadm
Apr 17, 2022
Replies: 1 comment 18 replies
-
You can |
Beta Was this translation helpful? Give feedback.
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
readOnly
on the editor itself to betrue
. This can be done oninitialConfig
passed toLexicalComposer
too, or by doingeditor.setReadOnly(true)
.