mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
6d97c2813b
commit
f4ef3f3a55
1 changed files with 4 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import {reloadProtyle} from "../protyle/util/reload";
|
|||
import {MenuItem} from "../menus/Menu";
|
||||
import {getDisplayName, getNotebookIcon, getNotebookName, movePathTo, pathPosix} from "../util/pathName";
|
||||
import {Protyle} from "../protyle";
|
||||
import {onGet} from "../protyle/util/onGet";
|
||||
import {disabledProtyle, onGet} from "../protyle/util/onGet";
|
||||
import {addLoading, setPadding} from "../protyle/ui/initUI";
|
||||
import {getIconByType} from "../editor/getIcon";
|
||||
import {unicode2Emoji} from "../emoji";
|
||||
|
|
@ -188,6 +188,9 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
|
|||
breadcrumbDocName: true
|
||||
},
|
||||
});
|
||||
if (window.siyuan.config.editor.readOnly) {
|
||||
disabledProtyle(edit.protyle);
|
||||
}
|
||||
if (closeCB) {
|
||||
if (data.layout === 1) {
|
||||
if (data.col) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue