1、切换到源代码模式
UM.getEditor('editor').execCommand("source");
2、给编辑器插入Velocity源码
$(".edui-container textarea")[0].value="<a>sdf</a>";
3、以上方法需要在ready事件后执行
ue.ready(function() {
doing
})
Powered by: 博客园 Copyright © 2024 季枫 Powered by .NET 8.0 on Kubernetes