function enableEdit(urlErrors, enable = true) {
    if (enable === true) {
        // Enable template changes
        $('#node-input-templateFolder, #btn-load-template')
            .prop('disabled', false)
            .css({
                cursor: 'pointer',
            })

        // Enable tabs and links
        $('#red-ui-tab-tab-files, #red-ui-tab-tab-libraries, #red-ui-tab-tab-security, #red-ui-tab-tab-advanced, info')
            .css({
                cursor: 'pointer',
            })
        $('#red-ui-tab-tab-files>a, #red-ui-tab-tab-libraries>a, #red-ui-tab-tab-security>a, #red-ui-tab-tab-advanced>a, info>a')
            .prop('disabled', false)
            .css({
                'pointer-events': 'auto',
                'cursor': 'pointer',
                'opacity': 1,
            })

        // Enable action buttons
        $('#uibuilderurl, #uibinstanceconf, #uib-apps-list')
            .prop('disabled', false)
            .css({
                // 'pointer-events': 'auto',
                cursor: 'pointer',
                opacity: 1,
            })

        // Clear the errors
        $('#url-errors').remove()
    } else {
        // Disable template changes
        $('#node-input-templateFolder, #btn-load-template')
            .prop('disabled', true)
            .css({
                cursor: 'not-allowed',
            })

        // Disable tabs and links
        $('#red-ui-tab-tab-files, #red-ui-tab-tab-libraries, #red-ui-tab-tab-security, #red-ui-tab-tab-advanced, info')
            .css({
                cursor: 'not-allowed',
            })
        $('#red-ui-tab-tab-files>a, #red-ui-tab-tab-libraries>a, #red-ui-tab-tab-security>a, #red-ui-tab-tab-advanced>a, info>a')
            .prop('disabled', true)
            .css({
                'pointer-events': 'none',
                'cursor': 'not-allowed',
                'opacity': 0.3,
            })

        // Disable action buttons
        $('#uibuilderurl, #uibinstanceconf, #btntopopen, #uib-apps-list')
            .prop('disabled', true)
            .css({
                // 'pointer-events': 'none',
                cursor: 'not-allowed',
                opacity: 0.3,
            })

        // Show the errors
        $('#url-errors').remove()
        $('#url-input').after(`
            <div id="url-errors" class="form-row" style="color:var(--red-ui-text-color-error)">
                ${Object.values(urlErrors).join('<br>')} 
            </div>
        `)
    }
}
(Dis)Allow uibuilder configuration other than URL changes
@param {object} urlErrors List of errors
@param {boolean} enable True=Enable config editing, false=disable