首页  :: 新随笔  :: 管理

Uedit编辑器编辑Velocity

Posted on 2017-11-02 18:02  季枫  阅读(799)  评论(0编辑  收藏  举报

1、切换到源代码模式

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

2、给编辑器插入Velocity源码

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

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

ue.ready(function() {

doing

})

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |