mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🚨
This commit is contained in:
parent
4c09d621d8
commit
83c1221102
4 changed files with 3 additions and 4 deletions
|
@ -13,7 +13,6 @@ import {showMessage} from "../../dialog/message";
|
|||
import {getCurrentEditor} from "../editor";
|
||||
import {avRender} from "../../protyle/render/av/render";
|
||||
import {setTitle} from "../../dialog/processSystem";
|
||||
import {activeBlur} from "./keyboardToolbar";
|
||||
|
||||
const forwardStack: IBackStack[] = [];
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
setFirstNodeRange,
|
||||
setLastNodeRange
|
||||
} from "../util/selection";
|
||||
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName, hasClosestByTag} from "../util/hasClosest";
|
||||
import {hasClosestBlock, hasClosestByAttribute, hasClosestByClassName} from "../util/hasClosest";
|
||||
import {Link} from "./Link";
|
||||
import {setPosition} from "../../util/setPosition";
|
||||
import {transaction, updateTransaction} from "../wysiwyg/transaction";
|
||||
|
|
|
@ -399,7 +399,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
const tempElement = document.createElement("div");
|
||||
tempElement.innerHTML = siyuanHTML;
|
||||
if (tempElement.childElementCount === 1) {
|
||||
const types = ((tempElement.firstElementChild as HTMLElement).dataset?.type || "").split(" ")
|
||||
const types = ((tempElement.firstElementChild as HTMLElement).dataset?.type || "").split(" ");
|
||||
if (types.includes("block-ref")) {
|
||||
protyle.toolbar.setInlineMark(protyle, "block-ref", "range", {
|
||||
type: "id",
|
||||
|
|
|
@ -894,7 +894,7 @@ export class WYSIWYG {
|
|||
}
|
||||
});
|
||||
protyle.wysiwyg.element.classList.add("protyle-wysiwyg--hiderange");
|
||||
tableBlockElement.querySelector(".table__select").setAttribute("style", `left:${left - tableBlockElement.firstElementChild.scrollLeft}px;top:${top - tableBlockElement.querySelector('table').scrollTop}px;height:${height}px;width:${width + 1}px;`);
|
||||
tableBlockElement.querySelector(".table__select").setAttribute("style", `left:${left - tableBlockElement.firstElementChild.scrollLeft}px;top:${top - tableBlockElement.querySelector("table").scrollTop}px;height:${height}px;width:${width + 1}px;`);
|
||||
moveCellElement = moveTarget;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue