diff --git a/src/public/app/services/frontend_script_api.js b/src/public/app/services/frontend_script_api.js index 6036c9c5b..b4ab61f7d 100644 --- a/src/public/app/services/frontend_script_api.js +++ b/src/public/app/services/frontend_script_api.js @@ -131,7 +131,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain */ /** - * Adds new button the the plugin area. + * Adds new button to the plugin area. * * @param {ToolbarButtonOptions} opts */ diff --git a/src/public/app/widgets/type_widgets/editable_code.js b/src/public/app/widgets/type_widgets/editable_code.js index a9fad85fc..a87bf6e69 100644 --- a/src/public/app/widgets/type_widgets/editable_code.js +++ b/src/public/app/widgets/type_widgets/editable_code.js @@ -1,11 +1,6 @@ import libraryLoader from "../../services/library_loader.js"; import TypeWidget from "./type_widget.js"; import keyboardActionService from "../../services/keyboard_actions.js"; -import server from "../../services/server.js"; -import ws from "../../services/ws.js"; -import appContext from "../../services/app_context.js"; -import toastService from "../../services/toast.js"; -import treeService from "../../services/tree.js"; import options from "../../services/options.js"; const TPL = ` @@ -49,7 +44,7 @@ export default class EditableCodeTypeWidget extends TypeWidget { delete CodeMirror.keyMap.default["Alt-Left"]; delete CodeMirror.keyMap.default["Alt-Right"]; - CodeMirror.modeURL = 'libraries/codemirror/mode/%N/%N.js'; + CodeMirror.modeURL = window.glob.assetPath + '/libraries/codemirror/mode/%N/%N.js'; this.codeEditor = CodeMirror(this.$editor[0], { value: "",