From b171a602897cd5d1f33e4519a0082478f00d4437 Mon Sep 17 00:00:00 2001 From: microbit-carlos Date: Tue, 12 Mar 2019 16:20:53 +0000 Subject: [PATCH] python-main: Make the EDITOR instance available globally. --- python-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-main.js b/python-main.js index 6c761275..56cbada8 100644 --- a/python-main.js +++ b/python-main.js @@ -120,8 +120,8 @@ See the comments in-line for more information. function web_editor(config) { 'use strict'; - // Instance of the pythonEditor object (the ACE text editor wrapper) - var EDITOR = pythonEditor('editor'); + // Global (useful for testing) instance of the ACE wrapper object + window.EDITOR = pythonEditor('editor'); // Indicates if there are unsaved changes to the content of the editor. var dirty = false;