UMeditor使用
来源:互联网 发布:淘宝 答案宠物店 假粮 编辑:程序博客网 时间:2024/06/06 01:02
html代码中:
<!--umeditor start-->
<link href="<?php echo $base_url; ?>umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo $base_url; ?>umeditor/third-party/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $base_url; ?>umeditor/third-party/template.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url; ?>umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url; ?>umeditor/umeditor.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $base_url; ?>umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="<?php echo $base_url; ?>umeditor/lang/zh-cn/zh-cn.js"></script>
<!-- end -->
调用:
<textarea id="myEditor" name="content" style="width:660px;height:250px;"></textarea>
Js中:
<script type="text/javascript">
window.um = UM.getEditor('myEditor',{
<!--定义toolbar-->
'undo redo | bold italic underline strikethrough |removeformat',
'cleardoc' ,
'| justifyleft justifycenter justifyright justifyjustify',
'| emotion image ',
'| horizontal fullscreen'
],
imageUrl:"<?php echo $base_url; ?>application/controllers/imageUp.php", //图片上传提交地址
imagePath:"<?php echo $base_url; ?>", //图片修正地址,也就是图片存储路径,可拼接。引用了fixedImagePath,如有特殊需求,可自行配置
imageFieldName:"upfile", //定义上传域name
autoHeightEnabled: true,
autoFloatEnabled: true
});
- UMeditor使用
- umeditor使用记录
- umeditor使用小记
- umeditor、ueditor的使用
- 百度umeditor的使用
- umeditor使用教程
- Umeditor的使用总结
- umeditor 使用经验分享
- 百度编辑器umeditor使用总结
- UMEditor文本编辑器的使用
- umeditor简洁富文本使用
- UMeditor百度富文本编辑器的使用
- 使用 UMEditor-jsp 图片上传失败解决方法
- 百度富文本编辑器UMeditor的使用
- 百度文本编辑器UMeditor在新浪SAE上的使用
- 富文本编辑器UMeditor在backbone中的使用
- UMeditor与SpringMVC的整合和上传图片使用
- umeditor编辑器
- wrapper log4j 中文乱码
- 要给嵌套sql的列例子
- 工厂模式
- Struts2下载文件时文件名乱码
- js及JQuery之event
- UMeditor使用
- Linux之定时任务
- python 获取文件字符编码类型
- Django如何在模板中显示通过ImageField上传的图片
- JQuery 解析多维的Json数据格式
- ajax发送请求后台处理数据格式然后返回前台的方法(ObjectMapper)
- hive中order by,sort by, distribute by, cluster by作用以及用法
- 2741: 武道大会的排名
- 2018美团点评校招-K的倍数