π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: editor fixes
sriram veeraghanta170f30c7dde8
diff --git a/packages/editor/rich-text-editor/src/ui/index.tsx b/packages/editor/rich-text-editor/src/ui/index.tsxindex 43c3f8f343..fe5752849e 100644--- a/packages/editor/rich-text-editor/src/ui/index.tsx+++ b/packages/editor/rich-text-editor/src/ui/index.tsx@@ -15,6 +15,7 @@ import { EditorBubbleMenu } from "src/ui/menus/bubble-menu";export type IRichTextEditor = {value: string;+ initialValue?: string;dragDropEnabled?: boolean;uploadFile: UploadImage;restoreFile: RestoreImage;@@ -54,6 +55,7 @@ const RichTextEditor = ({setShouldShowAlert,editorContentCustomClassNames,value,+ initialValue,uploadFile,deleteFile,noBorder,@@ -97,6 +99,10 @@ const RichTextEditor = ({customClassName,});+ React.useEffect(() => {+ if (editor && initialValue) editor.commands.setContent(initialValue);+ }, [editor, initialValue]);+if (!editor) return null;return (