]> BookStack Code Mirror - bookstack/blobdiff - resources/assets/js/vues/vues.js
Polish translation
[bookstack] / resources / assets / js / vues / vues.js
index 8cc1dd6560ccfc175e846cf9316a8c6ac7aceb0e..31d833bfb864a8308e87a062f0a353e2073f35fc 100644 (file)
@@ -7,12 +7,15 @@ function exists(id) {
 let vueMapping = {
     'search-system': require('./search'),
     'entity-dashboard': require('./entity-search'),
+    'code-editor': require('./code-editor')
 };
 
+window.vues = {};
+
 Object.keys(vueMapping).forEach(id => {
     if (exists(id)) {
         let config = vueMapping[id];
         config.el = '#' + id;
-        new Vue(config);
+        window.vues[id] = new Vue(config);
     }
 });
\ No newline at end of file