This commit is contained in:
2026-01-17 03:27:04 +01:00
parent b306b7dbd3
commit 83bde470d4

View File

@@ -444,6 +444,14 @@
if (mdl && mdl.set) {
mdl.set('closeOnEsc', false);
mdl.set('closeOnClick', false);
if (!mdl.__bridgeRteGuarded && typeof mdl.on === 'function') {
mdl.__bridgeRteGuarded = true;
mdl.on('change:open', () => {
if (!mdl.get('open') && !editor.__bridgeRteAllowClose) {
mdl.set('open', true, { silent: true });
}
});
}
}
if (modal.el) {
const closeBtn = modal.el.querySelector('.gjs-mdl-btn-close');
@@ -455,6 +463,12 @@
});
}
}
if (!document.getElementById('bridge-rte-modal-style')) {
const styleEl = document.createElement('style');
styleEl.id = 'bridge-rte-modal-style';
styleEl.textContent = '.gjs-mdl-btn-close{display:none!important;}';
document.head.appendChild(styleEl);
}
modal.open();
};