fix tinymce reload when modal is closed and reopened

This commit is contained in:
Simon Vieille 2023-08-13 22:11:44 +02:00
parent 405909a4e7
commit 4573a8d31e
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -622,5 +622,11 @@ module.exports = function () {
$(() => {
doInitEditor()
$('body').on('hidden.bs.modal', '.modal', (e) => {
$(e.target).find('.tox-tinymce').each(() => {
window.tinymce.remove($(this).prev().attr('id'))
})
})
})
}