X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/467176ee78c2874881e4fefdd6bdafa022180a18..refs/pull/2784/head:/resources/js/services/code.js diff --git a/resources/js/services/code.js b/resources/js/services/code.js index 7d49c50f6..5727cd2b7 100644 --- a/resources/js/services/code.js +++ b/resources/js/services/code.js @@ -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}; }