From 32e601a8e672220f8bc773d9092e3db8822a5285 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Wed, 8 May 2024 15:42:52 +0530 Subject: [PATCH] chore: remove description trim logic (#4396) --- packages/editor/core/src/hooks/use-editor.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor/core/src/hooks/use-editor.tsx b/packages/editor/core/src/hooks/use-editor.tsx index a90be65f1..778fdc5e4 100644 --- a/packages/editor/core/src/hooks/use-editor.tsx +++ b/packages/editor/core/src/hooks/use-editor.tsx @@ -3,7 +3,6 @@ import { useImperativeHandle, useRef, MutableRefObject, useState, useEffect } fr import { CoreEditorProps } from "src/ui/props"; import { CoreEditorExtensions } from "src/ui/extensions"; import { EditorProps } from "@tiptap/pm/view"; -import { getTrimmedHTML } from "src/lib/utils"; import { DeleteImage } from "src/types/delete-image"; import { IMentionHighlight, IMentionSuggestion } from "src/types/mention-suggestion"; import { RestoreImage } from "src/types/restore-image"; @@ -86,7 +85,7 @@ export const useEditor = ({ setSavedSelection(editor.state.selection); }, onUpdate: async ({ editor }) => { - onChange?.(editor.getJSON(), getTrimmedHTML(editor.getHTML())); + onChange?.(editor.getJSON(), editor.getHTML()); }, onDestroy: async () => { handleEditorReady?.(false);