function onEditSave(node) {
    // console.log('uibuilder: uib-sidebar: Edit save: node', node)

    // Update both the node's html property and the global window['uibSidebarHTML'] (for other uib-sidebar nodes)
    const html = window['uibSidebarHTML'] = node.editor.getValue()
    $('#node-input-html').val(html)

    updateTab(html)

    node.editor.destroy()
    delete node.editor
}
Handles the save event when editing a node in the Node-RED editor.
@param {object} node - The node being edited.
@description
This function performs the following tasks:
1. Copies the value of the editor to the hidden `html` input field.
2. Destroys & deletes the editor.