chore: implement memo content views

This commit is contained in:
Steven
2023-10-01 22:14:25 +08:00
parent fd395e5661
commit e40621eb0f
11 changed files with 140 additions and 71 deletions

View File

@ -98,7 +98,6 @@ const Editor = forwardRef(function Editor(props: Props, ref: React.ForwardedRef<
setContent: (text: string) => {
if (editorRef.current) {
editorRef.current.value = text;
editorRef.current.focus();
handleContentChangeCallback(editorRef.current.value);
updateEditorHeight();
}