|
1 | 1 | import React, { useEffect, useMemo } from 'react'
|
2 | 2 |
|
3 |
| -import { |
4 |
| - deserializeMd, |
5 |
| - focusEditor, |
6 |
| - getEdgePoints, |
7 |
| - getEndPoint, |
8 |
| - getPlateEditorRef, |
9 |
| - getPointAfter, |
10 |
| - getPointBefore, |
11 |
| - getPointBeforeLocation, |
12 |
| - getStartPoint, |
13 |
| - insertNodes |
14 |
| -} from '@udecode/plate' |
| 3 | +import { deserializeMd, focusEditor, getPlateEditorRef, getPointAfter, insertNodes } from '@udecode/plate' |
15 | 4 | import Highlighter from 'web-highlighter'
|
16 | 5 |
|
17 | 6 | import { IconButton } from '@workduck-io/mex-components'
|
@@ -62,15 +51,6 @@ const AIPreviewContainer: React.FC<AIPreviewProps> = (props) => {
|
62 | 51 | const deserializedContent = getContent(content)
|
63 | 52 |
|
64 | 53 | if (Array.isArray(deserializedContent) && deserializedContent.length > 0) {
|
65 |
| - console.log('EDGES', { |
66 |
| - selection: editor.selection, |
67 |
| - getPointAfter: getPointAfter(editor, editor.selection), |
68 |
| - getPointBefore: getPointBefore(editor, editor.selection), |
69 |
| - getEdgePoints: getEdgePoints(editor, editor.selection), |
70 |
| - getEndPoint: getEndPoint(editor, editor.selection), |
71 |
| - getStartPoint: getStartPoint(editor, editor.selection), |
72 |
| - point: getPointBeforeLocation(editor, editor.selection) |
73 |
| - }) |
74 | 54 | const at = replace ? editor?.selection : getPointAfter(editor, editor.selection)
|
75 | 55 |
|
76 | 56 | insertNodes(editor, deserializedContent, {
|
|
0 commit comments