mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
c36d397877
commit
61d69cc213
@ -21,7 +21,6 @@ export class Options {
|
|||||||
classes: {
|
classes: {
|
||||||
preview: "",
|
preview: "",
|
||||||
},
|
},
|
||||||
debugger: Constants.NODE_ENV === "development",
|
|
||||||
hint: {
|
hint: {
|
||||||
delay: 200,
|
delay: 200,
|
||||||
emoji: {
|
emoji: {
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
export const log = (method: string, content: string, type: string, print: boolean) => {
|
|
||||||
if (print) {
|
|
||||||
// @ts-ignore
|
|
||||||
console.log(`${method} - ${type}: ${content}`);
|
|
||||||
}
|
|
||||||
};
|
|
@ -1,4 +1,3 @@
|
|||||||
import {log} from "../util/log";
|
|
||||||
import {focusBlock, focusByWbr} from "../util/selection";
|
import {focusBlock, focusByWbr} from "../util/selection";
|
||||||
import {Constants} from "../../constants";
|
import {Constants} from "../../constants";
|
||||||
import * as dayjs from "dayjs";
|
import * as dayjs from "dayjs";
|
||||||
@ -174,8 +173,6 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||||||
) &&
|
) &&
|
||||||
!(tempElement.content.childElementCount === 1 && tempElement.content.firstElementChild.classList.contains("code-block") && type === "NodeCodeBlock")
|
!(tempElement.content.childElementCount === 1 && tempElement.content.firstElementChild.classList.contains("code-block") && type === "NodeCodeBlock")
|
||||||
) {
|
) {
|
||||||
log("SpinBlockDOM", blockElement.outerHTML, "argument", protyle.options.debugger);
|
|
||||||
log("SpinBlockDOM", html, "result", protyle.options.debugger);
|
|
||||||
if (blockElement.getAttribute("data-type") === "NodeHeading" && blockElement.getAttribute("fold") === "1" &&
|
if (blockElement.getAttribute("data-type") === "NodeHeading" && blockElement.getAttribute("fold") === "1" &&
|
||||||
tempElement.content.firstElementChild.getAttribute("data-subtype") !== blockElement.dataset.subtype) {
|
tempElement.content.firstElementChild.getAttribute("data-subtype") !== blockElement.dataset.subtype) {
|
||||||
setFold(protyle, blockElement, undefined, undefined, false);
|
setFold(protyle, blockElement, undefined, undefined, false);
|
||||||
|
2
app/src/types/protyle.d.ts
vendored
2
app/src/types/protyle.d.ts
vendored
@ -458,8 +458,6 @@ interface IProtyleOptions {
|
|||||||
}
|
}
|
||||||
/** 内部调试时使用 */
|
/** 内部调试时使用 */
|
||||||
_lutePath?: string;
|
_lutePath?: string;
|
||||||
/** 是否显示日志。默认值: false */
|
|
||||||
debugger?: boolean;
|
|
||||||
/** 是否启用打字机模式。默认值: false */
|
/** 是否启用打字机模式。默认值: false */
|
||||||
typewriterMode?: boolean;
|
typewriterMode?: boolean;
|
||||||
/** 多语言。默认值: 'zh_CN' */
|
/** 多语言。默认值: 'zh_CN' */
|
||||||
|
Loading…
Reference in New Issue
Block a user