false));
        saveEditButton.addEventListener('click', updateMindmapFromEdit);

        document
            .getElementById('mm-fit')
            .addEventListener('click', function (e) {
                e.preventDefault();
                e.stopPropagation();
                if (window.markmapInstance) {
                    window
                        .markmapInstance
                        .fit();
                }
            });
    });

    function toggleEditMode(show) {
        const viewer =