mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 04:40:15 +01:00
This commit is contained in:
parent
d67cca7942
commit
a687331bdf
4 changed files with 22 additions and 11 deletions
|
|
@ -68,7 +68,7 @@ export const openMobileFileById = (id: string, action = [Constants.CB_GET_HL]) =
|
|||
},
|
||||
after: (editor) => {
|
||||
// protyle 仅初始化一次,后续更新时会对 url 等再次复制
|
||||
if (window.siyuan.config.readonly || window.siyuan.config.editor.readOnly || document.querySelector("#toolbarEdit use").getAttribute("xlink:href") === "#iconEdit") {
|
||||
if (window.siyuan.config.readonly || window.siyuan.config.editor.readOnly) {
|
||||
disabledProtyle(editor.protyle);
|
||||
} else {
|
||||
enableProtyle(editor.protyle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue