function onEditResize(size, node) {
    const rows = $('#dialog-form>div:not(.node-text-editor-row)')
    let height = $('#dialog-form').height()
    for (let i = 0; i < rows.length; i++) {
        height -= $(rows[i]).outerHeight(true)
    }
    const editorRow = $('#dialog-form>div.node-text-editor-row')
    height -= (parseInt(editorRow.css('marginTop')) + parseInt(editorRow.css('marginBottom')))
    $('#dialog-form .node-text-editor').css('height', height + 'px')
    node.editor.resize()
}
Handles the resize event when editing a node in the Node-RED editor.
@param {object} size - The size of the editor.
@param {object} node - The node being edited.