1、切换到源代码模式

UM.getEditor('editor').execCommand("source");

2、给编辑器插入Velocity源码

$(".edui-container textarea")[0].value="<a>sdf</a>";

3、以上方法需要在ready事件后执行

ue.ready(function() {

doing

})

相关文章:

  • 2021-09-02
  • 2021-11-17
  • 2021-11-23
  • 2021-11-10
  • 2021-07-16
  • 2021-10-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-03-06
  • 2021-10-01
  • 2021-12-19
  • 2021-10-01
相关资源
相似解决方案