🐛 表格内粘贴代码块

This commit is contained in:
Vanessa 2022-09-02 12:53:46 +08:00
parent 85e19e6791
commit 4696f72522

View file

@ -29,7 +29,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>
}
}
}
if (tableElement) {
if (tableElement && !isBlock) {
html = protyle.lute.BlockDOM2InlineBlockDOM(html);
}
let blockElement = hasClosestBlock(range.startContainer) as Element;