Enable Web Worker for ACE editor

This commit is contained in:
Sebastian Serth
2024-04-13 18:25:17 +02:00
committed by Sebastian Serth
parent 4ba5f0d7d8
commit f42c56042c

View File

@ -64,7 +64,6 @@ $(document).on('turbolinks:load', function () {
currentEditor.setReadOnly(true); currentEditor.setReadOnly(true);
// set editor mode (used for syntax highlighting // set editor mode (used for syntax highlighting
currentEditor.getSession().setMode($(editor).data('mode')); currentEditor.getSession().setMode($(editor).data('mode'));
currentEditor.getSession().setOption("useWorker", false);
currentEditor.setTheme(CodeOceanEditor.THEME); currentEditor.setTheme(CodeOceanEditor.THEME);
currentEditor.commentVisualsByLine = {}; currentEditor.commentVisualsByLine = {};