From e1b978832584870340ee717ddb0f3d686040c7c1 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sat, 14 Sep 2019 20:22:15 +0100 Subject: [PATCH] Fix to font size selector child, outputMsg added --- lib/ice-coder.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 947f355..50b5429 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -3374,7 +3374,7 @@ var ICEcoder = { thisCSS[strCSS][0].style['fontSize'] = fontSize; // Update styles in editor - thisCSS = ICEcoder.content.contentWindow.document.styleSheets[4]; + thisCSS = ICEcoder.content.contentWindow.document.styleSheets[6]; strCSS = thisCSS.rules ? 'rules' : 'cssRules'; thisCSS[strCSS][0].style['fontSize'] = fontSize; thisCSS[strCSS][4].style['border-left-width'] = visibleTabs ? '1px' : '0'; @@ -3543,6 +3543,11 @@ var ICEcoder = { window.location = window.location + "?logout&"+(type ? "type="+type+"&" : "")+"csrf="+top.ICEcoder.csrf; }, + // Show a message + outputMsg: function(msg) { + top.ICEcoder.output.innerHTML += msg + "
"; + }, + // Show a message message: function(msg) { alert(msg);