From f9bdc3247481bd05a693c0258cb172a0981c0eb0 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Mon, 23 Nov 2015 17:29:05 -0800 Subject: [PATCH] Fix editor in iFrame should be the code This should be changed --- client/iFrameScripts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/iFrameScripts.js b/client/iFrameScripts.js index 0a3ad3b5ed..0375ffbf0f 100644 --- a/client/iFrameScripts.js +++ b/client/iFrameScripts.js @@ -7,8 +7,7 @@ window.__$(function() { var assert = chai.assert; var tests = parent.tests; var common = parent.common; - var code = common.editor.getValue(); - var editor = common.editor; + var editor = common.editor.getValue(); // grab the iframe body element var body = document.getElementsByTagName('body'); // change the context of $ so it uses the iFrame for testing