function setACEheight() {
    let height

    if ( uiace.editorLoaded === true ) {
        // If the editor is in full-screen ...
        if (document.fullscreenElement) {
            // Force background color and add some padding to keep away from edge
            $('#edit-props').css('background-color', '#f6f6f6')
                .css('padding', '1em')

            // Start to calculate the available height and adjust the editor to fill the ht
            height = parseInt($('#edit-props').css('height'), 10) // full available height
            height -= 25

            // Replace the expand icon with a compress icon
            $('#node-function-expand-js').css('background-color', 'black')
                .html('<i class="fa fa-compress"></i>')

            uiace.fullscreen = true
        } else {
            // Don't bother if the top of the editor is still auto
            if ( $('#edit-outer').css('top') === 'auto' ) return

            $('#edit-props').css('background-color', '')
                .css('padding', '')

            height = ($('.red-ui-tray-footer').position()).top - ($('#edit-outer').offset()).top - 35

            // Replace the compress icon with a expand icon
            $('#node-function-expand-js').css('background-color', '')
                .html('<i class="fa fa-expand"></i>')

            uiace.fullscreen = false
        }

        // everything but the edit box
        const rows = $('#edit-props > div:not(.node-text-editor-row)')

        // subtract height of each row from the total
        for (let i = 0; i < rows.length; i++) {
            height -= $(rows[i]).outerHeight(true)
        }

        // Set the height of the edit box - no longer needed, using calc CSS
        // $('#node-input-template-editor').css('height', height + 'px')

        // Get the content to match the edit box size
        uiace.editor.resize()
    }
}
Set the height of the ACE text editor box