首页 > 其他 > 详细

简单使用ueditor

时间:2021-01-15 13:10:41      阅读:44      评论:0      收藏:0      [点我收藏+]

简单使用ueditor

官网地址:http://fex.baidu.com/ueditor/

引入必要文件

有些地方可能会用到jQuery,建议也引用进来

<!-- 配置文件 -->
<script type="text/javascript" src="ueditor文件夹/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="ueditor文件夹/ueditor.all.js"></script>

body区域

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

</script>

JavaScript

  //实例化编辑器
var ue = UE.getEditor(‘container‘,{
    //设置高度 更多设置见 http://fex.baidu.com/ueditor/#start-config
    initialFrameHeight:300,
});

简单使用ueditor

原文:https://www.cnblogs.com/jurij/p/14280505.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!