mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-14 00:16:13 +01:00
🚨
This commit is contained in:
parent
dce6444b97
commit
820a51e5c2
4 changed files with 11 additions and 13 deletions
|
|
@ -34,7 +34,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false,
|
|||
let id = blockElement.getAttribute("data-node-id");
|
||||
range.insertNode(document.createElement("wbr"));
|
||||
let oldHTML = blockElement.outerHTML;
|
||||
const isNodeCodeBlock = blockElement.getAttribute("data-type") === "NodeCodeBlock"
|
||||
const isNodeCodeBlock = blockElement.getAttribute("data-type") === "NodeCodeBlock";
|
||||
if (!isBlock &&
|
||||
(isNodeCodeBlock || protyle.toolbar.getCurrentType(range).includes("code"))) {
|
||||
range.deleteContents();
|
||||
|
|
|
|||
|
|
@ -6,16 +6,14 @@ import {writeText} from "./compatibility";
|
|||
import {clipboard} from "electron";
|
||||
/// #endif
|
||||
import {hasClosestBlock} from "./hasClosest";
|
||||
import {focusByWbr, getEditorRange} from "./selection";
|
||||
import {getEditorRange} from "./selection";
|
||||
import {blockRender} from "../markdown/blockRender";
|
||||
import {highlightRender} from "../markdown/highlightRender";
|
||||
import {updateTransaction} from "../wysiwyg/transaction";
|
||||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||
import {isDynamicRef, isFileAnnotation} from "../../util/functions";
|
||||
import {insertHTML} from "./insertHTML";
|
||||
import {scrollCenter} from "../../util/highlightById";
|
||||
import {hideElements} from "../ui/hideElements";
|
||||
import {hasNextSibling, hasPreviousSibling} from "../wysiwyg/getBlock";
|
||||
|
||||
const filterClipboardHint = (protyle: IProtyle, textPlain: string) => {
|
||||
let needRender = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue