asdasd
This commit is contained in:
@@ -444,6 +444,14 @@
|
|||||||
if (mdl && mdl.set) {
|
if (mdl && mdl.set) {
|
||||||
mdl.set('closeOnEsc', false);
|
mdl.set('closeOnEsc', false);
|
||||||
mdl.set('closeOnClick', 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) {
|
if (modal.el) {
|
||||||
const closeBtn = modal.el.querySelector('.gjs-mdl-btn-close');
|
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();
|
modal.open();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user