mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 07:02:33 +01:00
🚨
This commit is contained in:
parent
320110d57e
commit
4cd93b0fec
10 changed files with 15 additions and 8 deletions
|
|
@ -108,7 +108,7 @@ export class Breadcrumb {
|
|||
break;
|
||||
} else if (type === "readonly") {
|
||||
if (!window.siyuan.config.readonly) {
|
||||
const isReadonly = target.querySelector("use").getAttribute("xlink:href") !== "#iconUnlock"
|
||||
const isReadonly = target.querySelector("use").getAttribute("xlink:href") !== "#iconUnlock";
|
||||
if (window.siyuan.config.editor.readOnly) {
|
||||
if (isReadonly) {
|
||||
enableProtyle(protyle);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import {updatePanelByEditor} from "../editor/util";
|
|||
import {setPanelFocus} from "../layout/util";
|
||||
/// #endif
|
||||
import {Background} from "./header/Background";
|
||||
import {disabledProtyle, enableProtyle, onGet} from "./util/onGet";
|
||||
import {onGet} from "./util/onGet";
|
||||
import {reloadProtyle} from "./util/reload";
|
||||
import {renderBacklink} from "./wysiwyg/renderBacklink";
|
||||
import {setEmpty} from "../mobile/util/setEmpty";
|
||||
|
|
|
|||
|
|
@ -378,7 +378,6 @@ export const enableProtyle = (protyle: IProtyle) => {
|
|||
hideTooltip();
|
||||
};
|
||||
|
||||
|
||||
const focusElementById = (protyle: IProtyle, action: string[]) => {
|
||||
let focusElement: Element;
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${protyle.block.id}"]`)).find((item: HTMLElement) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue