mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 15:11:48 +01:00
This commit is contained in:
parent
7735a018f3
commit
980e1bd9d5
3 changed files with 14 additions and 3 deletions
|
|
@ -20,6 +20,7 @@ import {input} from "../wysiwyg/input";
|
|||
import {fetchPost} from "../../util/fetch";
|
||||
import {isIncludeCell} from "./table";
|
||||
import {getFieldIdByCellElement} from "../render/av/row";
|
||||
import {processClonePHElement} from "../render/util";
|
||||
|
||||
const processAV = (range: Range, html: string, protyle: IProtyle, blockElement: HTMLElement) => {
|
||||
const tempElement = document.createElement("template");
|
||||
|
|
@ -492,6 +493,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
});
|
||||
}
|
||||
if (!hasParentHeading) {
|
||||
processClonePHElement(item);
|
||||
if (insertBefore) {
|
||||
blockElement.before(item);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue