Skip to content

Commit

Permalink
fix(admin-ui): Fix defaultValue on React RichTextEditor
Browse files Browse the repository at this point in the history
Relates to #2884
  • Loading branch information
michaelbromley committed Jun 24, 2024
1 parent fae8fd3 commit 051d56f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export const RichTextEditor = forwardRef((props: RichTextEditorType, ref: Forwar
if (props.onMount && editor) {
props.onMount(editor);
}
if (typeof props.defaultValue === 'string') {
editor.update(props.defaultValue);
}
}, []);
return (
<>
Expand Down

0 comments on commit 051d56f

Please sign in to comment.