make html first
This commit is contained in:
fantasticit 2022-07-29 22:20:08 +08:00
parent 94836d49fa
commit 52e8f637c9
1 changed files with 2 additions and 3 deletions

View File

@ -25,7 +25,6 @@ interface IPasteOptions {
/**
* markdown prosemirror
* FIXME: prosemirror
*/
markdownToProsemirror: (arg: { schema: Schema; content: string; needTitle: boolean }) => Node;
@ -111,8 +110,8 @@ export const Paste = Extension.create<IPasteOptions>({
return true;
}
// 新增office 套件内容处理
if (html?.includes('urn:schemas-microsoft-com:office')) {
// FIXME各家 office 套件标准不一样,是否需要做成用户自行选择粘贴 html 或者 图片?
if (html?.length) {
const doc = htmlToProsemirror({
schema: editor.schema,
html,