X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/63d62722825b9ba77f75db531363d29f9dcc6c68..refs/pull/3918/head:/resources/js/markdown/editor.js diff --git a/resources/js/markdown/editor.js b/resources/js/markdown/editor.js index decebe5f4..1cf4cef2b 100644 --- a/resources/js/markdown/editor.js +++ b/resources/js/markdown/editor.js @@ -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} 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