mirror of https://github.com/fantasticit/think.git
fix: remove unused code
This commit is contained in:
parent
009d7782a4
commit
833e845503
|
@ -416,7 +416,7 @@ MindElixir.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function () {
|
destroy: function () {
|
||||||
this.bus.destroy();
|
this.bus && this.bus.destroy();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import { Editor } from '@tiptap/core';
|
||||||
import { Node, Fragment } from 'prosemirror-model';
|
import { Node, Fragment } from 'prosemirror-model';
|
||||||
import { copy } from 'helpers/copy';
|
import { copy } from 'helpers/copy';
|
||||||
import { safeJSONStringify } from 'helpers/json';
|
import { safeJSONStringify } from 'helpers/json';
|
||||||
// import { prosemirrorToMarkdown } from 'tiptap/_markdown/prosemirror-to-markdown';
|
|
||||||
// import { markdownToHTML } from 'tiptap/markdown/markdown-to-prosemirror/markdown-to-html';
|
|
||||||
|
|
||||||
export function copyNode(nodeOrNodeName: Node);
|
export function copyNode(nodeOrNodeName: Node);
|
||||||
export function copyNode(nodeOrNodeName: string, editor: Editor);
|
export function copyNode(nodeOrNodeName: string, editor: Editor);
|
||||||
|
@ -39,8 +37,6 @@ export function copyNode(nodeOrNodeName: string | Node, editor?: Editor) {
|
||||||
toCopy.push({ text: targetNode.textContent, format: 'text/plain' });
|
toCopy.push({ text: targetNode.textContent, format: 'text/plain' });
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('copy', editor);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { markdownToHTML, prosemirrorToMarkdown } = editor.extensionStorage['paste'];
|
const { markdownToHTML, prosemirrorToMarkdown } = editor.extensionStorage['paste'];
|
||||||
const markdown = prosemirrorToMarkdown({ content: Fragment.from(targetNode) });
|
const markdown = prosemirrorToMarkdown({ content: Fragment.from(targetNode) });
|
||||||
|
|
Loading…
Reference in New Issue