]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-editor.js
New Crowdin updates (#2441)
[bookstack] / resources / js / components / page-editor.js
index 266e1918251d805fe4bc6735e5b3f801212fc2a6..a0d8d38b129b3c4c8d4c8fde8eeb4f51e4a3f4a8 100644 (file)
@@ -12,7 +12,7 @@ class PageEditor {
         this.editorType = this.$opts.editorType;
         this.pageId = Number(this.$opts.pageId);
         this.isNewDraft = this.$opts.pageNewDraft === 'true';
-        this.hasDefaultTitle = this.$opts.isDefaultTitle || false;
+        this.hasDefaultTitle = this.$opts.hasDefaultTitle || false;
 
         // Elements
         this.container = this.$el;
@@ -74,6 +74,7 @@ class PageEditor {
     }
 
     setInitialFocus() {
+        console.log({'HAS': this.hasDefaultTitle});
         if (this.hasDefaultTitle) {
             return this.titleElem.select();
         }