mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
d57f0ca655
4 changed files with 6 additions and 6 deletions
|
|
@ -2,7 +2,7 @@ import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "./h
|
|||
import * as dayjs from "dayjs";
|
||||
import {transaction, updateTransaction} from "../wysiwyg/transaction";
|
||||
import {getContenteditableElement} from "../wysiwyg/getBlock";
|
||||
import {focusBlock, getEditorRange, focusByWbr, fixTableRange} from "./selection";
|
||||
import {fixTableRange, focusBlock, focusByWbr, getEditorRange} from "./selection";
|
||||
import {mathRender} from "../markdown/mathRender";
|
||||
import {Constants} from "../../constants";
|
||||
import {highlightRender} from "../markdown/highlightRender";
|
||||
|
|
@ -75,7 +75,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>
|
|||
});
|
||||
}
|
||||
const tempElement = document.createElement("template");
|
||||
// 老板说不论什么情况都需要再 spin 一次 https://github.com/siyuan-note/siyuan/issues/7118
|
||||
// 需要再 spin 一次 https://github.com/siyuan-note/siyuan/issues/7118
|
||||
tempElement.innerHTML = protyle.lute.SpinBlockDOM(html);
|
||||
const editableElement = getContenteditableElement(blockElement);
|
||||
// 使用 lute 方法会添加 p 元素,只有一个 p 元素或者只有一个字符串或者为 <u>b</u> 时的时候只拷贝内部
|
||||
|
|
|
|||
2
app/stage/protyle/js/lute/lute.min.js
vendored
2
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue