1、切换到源代码模式
UM.getEditor('editor').execCommand("source");
2、给编辑器插入Velocity源码
$(".edui-container textarea")[0].value="<a>sdf</a>";
3、以上方法需要在ready事件后执行
ue.ready(function() {
doing
})
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3