在 MVC  局部视图中,有时我们需要 加载 ueditor 编辑器,或进行局部刷新, 但是在加载局部视图后,ueditor 编辑器加载不出,这是由于 ueditor 使用的缓存,只要清空缓存,重新实例化 编辑器就能加载出来 ,具体的解决方法 如下:

在 局部视图中添加以下代码:

    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "/Content/ueditor/";
        UE.delEditor('GiftCont'); //销毁编辑器
        UE.getEditor("GiftCont"); //重新实例化编辑器
    </script>

 

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2021-10-24
  • 2021-12-17
  • 2021-09-16
  • 2022-12-23
  • 2021-10-13
猜你喜欢
  • 2021-04-27
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案