diff --git a/packages/nc-gui/components/cell/RichText.vue b/packages/nc-gui/components/cell/RichText.vue index 2c1f7d449b..a01b7e41d6 100644 --- a/packages/nc-gui/components/cell/RichText.vue +++ b/packages/nc-gui/components/cell/RichText.vue @@ -280,12 +280,12 @@ const editor = useEditor({ }, }) -const setEditorContent = (contentMd: any, focusEndOfDoc?: boolean) => { +const setEditorContent = (contentMd: string, focusEndOfDoc?: boolean) => { if (!editor.value) return const selection = editor.value.view.state.selection - const contentHtml = contentMd ? marked.parse(contentMd) : '
' + const contentHtml = contentMd ? marked.parse(contentMd.replaceAll('\n', '