Skip to content

Commit b2e7168

Browse files
authored
Merge pull request #656 from basil/JENKINS-70564
[JENKINS-70564] Replay page broken after the Ace editor update
2 parents 8afc8e2 + bf6cd92 commit b2e7168

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,6 +9,7 @@ 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
import "ace-builds/src-noconflict/theme-tomorrow_night";
1415

@@ -17,6 +18,7 @@ import "./snippets/workflow";
1718

1819
var editorIdCounter = 0;
1920

21+
document.addEventListener("DOMContentLoaded", function() {
2022
$('.workflow-editor-wrapper').each(function() {
2123
initEditor($(this));
2224
});
@@ -130,3 +132,4 @@ var editorIdCounter = 0;
130132
wrapper.show();
131133
textarea.hide();
132134
}
135+
});

0 commit comments

Comments
 (0)