forked from github/plane
chore: remove description trim logic (#4396)
This commit is contained in:
parent
50e3174ea8
commit
32e601a8e6
@ -3,7 +3,6 @@ import { useImperativeHandle, useRef, MutableRefObject, useState, useEffect } fr
|
|||||||
import { CoreEditorProps } from "src/ui/props";
|
import { CoreEditorProps } from "src/ui/props";
|
||||||
import { CoreEditorExtensions } from "src/ui/extensions";
|
import { CoreEditorExtensions } from "src/ui/extensions";
|
||||||
import { EditorProps } from "@tiptap/pm/view";
|
import { EditorProps } from "@tiptap/pm/view";
|
||||||
import { getTrimmedHTML } from "src/lib/utils";
|
|
||||||
import { DeleteImage } from "src/types/delete-image";
|
import { DeleteImage } from "src/types/delete-image";
|
||||||
import { IMentionHighlight, IMentionSuggestion } from "src/types/mention-suggestion";
|
import { IMentionHighlight, IMentionSuggestion } from "src/types/mention-suggestion";
|
||||||
import { RestoreImage } from "src/types/restore-image";
|
import { RestoreImage } from "src/types/restore-image";
|
||||||
@ -86,7 +85,7 @@ export const useEditor = ({
|
|||||||
setSavedSelection(editor.state.selection);
|
setSavedSelection(editor.state.selection);
|
||||||
},
|
},
|
||||||
onUpdate: async ({ editor }) => {
|
onUpdate: async ({ editor }) => {
|
||||||
onChange?.(editor.getJSON(), getTrimmedHTML(editor.getHTML()));
|
onChange?.(editor.getJSON(), editor.getHTML());
|
||||||
},
|
},
|
||||||
onDestroy: async () => {
|
onDestroy: async () => {
|
||||||
handleEditorReady?.(false);
|
handleEditorReady?.(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user