]> BookStack Code Mirror - bookstack/blobdiff - resources/js/markdown/editor.js
Guest create page: name field autofocus
[bookstack] / resources / js / markdown / editor.js
index decebe5f4a4fc2a0ed6e910b8bc52dbdc5c5578e..1cf4cef2bcf04494f0f617a90a43069326fb5985 100644 (file)
@@ -1,6 +1,7 @@
 import {Markdown} from "./markdown";
 import {Display} from "./display";
 import {Actions} from "./actions";
+import {Settings} from "./settings";
 import {listen} from "./common-events";
 import {init as initCodemirror} from "./codemirror";
 
@@ -18,6 +19,7 @@ export async function init(config) {
     const editor = {
         config,
         markdown: new Markdown(),
+        settings: new Settings(config.settingInputs),
     };
 
     editor.actions = new Actions(editor);
@@ -37,6 +39,7 @@ export async function init(config) {
  * @property {Element} displayEl
  * @property {HTMLTextAreaElement} inputEl
  * @property {String} drawioUrl
+ * @property {HTMLInputElement[]} settingInputs
  * @property {Object<String, String>} text
  */
 
@@ -47,4 +50,5 @@ export async function init(config) {
  * @property {Markdown} markdown
  * @property {Actions} actions
  * @property {CodeMirror} cm
+ * @property {Settings} settings
  */
\ No newline at end of file