Uedit编辑器编辑Velocity

1、切换到源代码模式

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

2、给编辑器插入Velocity源码

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

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

ue.ready(function() {

doing

})

原文地址:https://www.cnblogs.com/jifeng/p/7773561.html