This commit is contained in:
Vanessa 2023-10-16 17:38:49 +08:00
parent 166dd4a1c3
commit 0b29428994

View file

@ -20,7 +20,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
fixTableRange(range);
let tableInlineHTML;
if (hasClosestByAttribute(range.startContainer, "data-type", "NodeTable") && !isBlock) {
if (hasClosestByMatchTag(range.startContainer, "table")) {
if (hasClosestByMatchTag(range.startContainer, "TABLE")) {
tableInlineHTML = protyle.lute.BlockDOM2InlineBlockDOM(html);
} else {
// https://github.com/siyuan-note/siyuan/issues/9411