]> BookStack Code Mirror - bookstack/blobdiff - resources/js/services/code.js
Adding Croatian translation files
[bookstack] / resources / js / services / code.js
index 7d49c50f67bc4d6dc6e4efd56f4d073d91b55f7e..5727cd2b79a06f4e68b83eb68f1e1e34e2424300 100644 (file)
@@ -85,6 +85,7 @@ const modeMap = {
     bash: 'shell',
     toml: 'toml',
     sql: 'text/x-sql',
+    vbs: 'vbscript',
     vbscript: 'vbscript',
     xml: 'xml',
     yaml: 'yaml',
@@ -237,9 +238,7 @@ function wysiwygView(elem) {
         theme: getTheme(),
         readOnly: true
     });
-    setTimeout(() => {
-        cm.refresh();
-    }, 300);
+
     return {wrap: newWrap, editor: cm};
 }