Skip to content

Commit

Permalink
fix: add preview mode callback (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyifeng authored May 20, 2024
1 parent 863f611 commit 8d6bd74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/RichEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function RichEditor(
loadSuggestions = () => [],
identifier,
extraButtons,
onChangePreviewMode,
},
ref,
) {
Expand All @@ -51,6 +52,7 @@ function RichEditor(
onChange={setContent}
loadSuggestions={loadSuggestions}
identifier={identifier}
onChangePreviewMode={onChangePreviewMode}
/>

{errorMsg && <ErrorMsg>{errorMsg}</ErrorMsg>}
Expand Down

0 comments on commit 8d6bd74

Please sign in to comment.