Vanessa 2023-09-09 14:54:05 +08:00
parent ff45ebcdaf
commit 2659052bb9
40 changed files with 164 additions and 151 deletions

View file

@ -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);

View file

@ -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({