给ueditor编辑器赋值

<script id="editor" name="content" type="text/plain" style="width:100%;height:400px;"></script>

html代码如上

var editor = UE.getEditor("editor");
    editor.ready(function(){
        editor.setContent("123");
    })

js代码如上

posted @ 2017-08-09 21:07  Harry-  阅读(4410)  评论(0编辑  收藏  举报