1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

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

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