Fix to font size selector child, outputMsg added

This commit is contained in:
Matt Pass
2019-09-14 20:22:15 +01:00
committed by GitHub
parent c193cf65a0
commit e1b9788325

View File

@@ -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 + "<br>";
},
// Show a message
message: function(msg) {
alert(msg);