ueditor富文本

引入

<script type="text/javascript" src="utf8-php/ueditor.config.js"></script>
<script type="text/javascript" src="utf8-php/ueditor.all.js"></script>

<!-- 加载编辑器的容器 -->
<script id="container" name="content" type="text/plain">
   
</script>

实例化

var ue = UE.getEditor('container', {
        autoHeightEnabled: false,
        initialFrameHeight: 300
    });

获取文本内容

var html = ue.getContent();

posted @ 2017-08-02 16:44  哔哩哔哩干杯  阅读(178)  评论(0编辑  收藏  举报