]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugin-codeeditor.js
Started refactor and alignment of component system
[bookstack] / resources / js / wysiwyg / plugin-codeeditor.js
index 66441c87e9ee8387bf32653fa6ca3bd41b468218..cd0078b1d914da39ccdf3df993527f44f7ce4626 100644 (file)
@@ -9,7 +9,7 @@ function elemIsCodeBlock(elem) {
  * @param {function(string, string)} callback (Receives (code: string,language: string)
  */
 function showPopup(editor, code, language, callback) {
-    window.components.first('code-editor').open(code, language, (newCode, newLang) => {
+    window.$components.first('code-editor').open(code, language, (newCode, newLang) => {
         callback(newCode, newLang)
         editor.focus()
     });