mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +01:00
This commit is contained in:
parent
ff45ebcdaf
commit
2659052bb9
40 changed files with 164 additions and 151 deletions
|
|
@ -53,10 +53,6 @@ export class Editor extends Model {
|
|||
scrollAttr: options.scrollAttr,
|
||||
typewriterMode: true,
|
||||
after: (editor) => {
|
||||
if (window.siyuan.config.readonly || window.siyuan.config.editor.readOnly) {
|
||||
disabledProtyle(editor.protyle);
|
||||
}
|
||||
|
||||
if (window.siyuan.editorIsFullscreen) {
|
||||
editor.protyle.element.classList.add("fullscreen");
|
||||
setPadding(editor.protyle);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ export const rename = (options: {
|
|||
type: "notebook" | "file"
|
||||
range?: Range,
|
||||
}) => {
|
||||
if (window.siyuan.config.editor.readOnly || window.siyuan.config.readonly) {
|
||||
if (window.siyuan.config.readonly) {
|
||||
return;
|
||||
}
|
||||
const dialog = new Dialog({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue