Skip to content

Commit bf6cd92

Browse files
committed
[JENKINS-70564] Replay page broken after the Ace editor update
1 parent bf9de4f commit bf6cd92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/src/main/js/workflow-editor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ import { addSamplesWidget } from './samples';
99
import ace from "ace-builds/src-noconflict/ace";
1010
import "ace-builds/src-noconflict/ext-language_tools";
1111
import "ace-builds/src-noconflict/mode-groovy";
12+
import "ace-builds/src-noconflict/snippets/javascript";
1213
import "ace-builds/src-noconflict/theme-tomorrow";
1314

1415
// Import custom snippets
1516
import "./snippets/workflow";
1617

1718
var editorIdCounter = 0;
1819

20+
document.addEventListener("DOMContentLoaded", function() {
1921
$('.workflow-editor-wrapper').each(function() {
2022
initEditor($(this));
2123
});
@@ -128,3 +130,4 @@ var editorIdCounter = 0;
128130
wrapper.show();
129131
textarea.hide();
130132
}
133+
});

0 commit comments

Comments
 (0)