add support for explicit calls to ace.setFontSize

- found node-red-contrib-ui-svg explicitly calling ace function
This commit is contained in:
Steve-Mcl 2021-05-04 10:34:29 +01:00
parent 251dda3652
commit 1acb073737
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@
function gotoLine(row, col)
function getCursorPosition()
function setTheme(name)
function setFontSize(size:Number) //Set a new font size (in pixels) for the editor text.
function on(name, cb)
function getUndoManager()
@ -1183,6 +1184,9 @@ RED.editor.codeEditor.monaco = (function() {
o.isClean = isClean.bind(ed);
return o;
}
ed.setFontSize = function setFontSize(size) {
ed.updateOptions({ fontSize: size });
}
//#endregion "ACE compatability"
//final setup