This commit is contained in:
Vanessa 2024-10-29 23:01:31 +08:00
parent 24856a1c84
commit 7e37563fcd
12 changed files with 26 additions and 28 deletions

View file

@ -224,7 +224,7 @@ const processTable = (range: Range, html: string, protyle: IProtyle, blockElemen
range.collapse(false);
updateTransaction(protyle, blockElement.getAttribute("data-node-id"), blockElement.outerHTML, oldHTML);
return true;
}
};
export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
// 移动端插入嵌入块时,获取到的 range 为旧值