遇到這個問題很是困惑,網(wǎng)上查資料發(fā)現(xiàn)解決方法其實就是在Modal關(guān)閉的時候做一些處理恭朗,將編輯器刪除就可以二次加載了
Kindeditor解決方法:
$('#myModal').on('hidden.bs.modal', function () {
// 關(guān)閉Dialog前移除編輯器
KindEditor.remove('#content');
});
UEditor解決方法:
$('#adminModalLg').on('hidden.bs.modal', function () {
// 關(guān)閉Dialog前移除編輯器
UM.getEditor('container').destroy();
});