fix tinymce reload when modal is closed and reopened
This commit is contained in:
parent
405909a4e7
commit
4573a8d31e
|
@ -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'))
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue