Skip to content

Commit 07a8403

Browse files
python-main: Make the EDITOR instance available globally. (#125)
1 parent 4514815 commit 07a8403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python-main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ See the comments in-line for more information.
120120
function web_editor(config) {
121121
'use strict';
122122

123-
// Instance of the pythonEditor object (the ACE text editor wrapper)
124-
var EDITOR = pythonEditor('editor');
123+
// Global (useful for testing) instance of the ACE wrapper object
124+
window.EDITOR = pythonEditor('editor');
125125

126126
// Indicates if there are unsaved changes to the content of the editor.
127127
var dirty = false;

0 commit comments

Comments
 (0)