浅用HTML编辑器ueditor
来源:互联网 发布:asynchttp post json 编辑:程序博客网 时间:2024/05/01 16:48
UEditor是由百度web前端研发部开发的web编辑器,一个学长推荐我去看一下,的确很好用。
先上官网看一下,有好多版本。Ubuilder是比较精简的一个版本,我要把 编辑器运用到项目中,所以选用了开发版的。
把下载的压缩包打开,里面就有demo。
在根目录下有两个js文件很重要一个是编辑器源码文件ueditor.all.js和配置文件ueditor.config.js
在config.js文件下可以根据需要修改工具栏
, toolbars: [[ 'fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'directionalityltr', 'directionalityrtl', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'simpleupload', 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe', 'insertcode', 'webapp', 'pagebreak', 'template', 'background', '|', 'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|', 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|', 'print', 'preview', 'searchreplace', 'drafts', 'help' ]]
但是我需要的编辑器比较精简,所以我就做了些修改。
这是我在最后项目中的效果:
哎,可是还有个bug没有解决,好烦。。。编辑器的高度会改变。。。
0 0
- 浅用HTML编辑器ueditor
- HTML编辑器UEditor的简单使用
- 推荐1款在线HTML编辑器(Ueditor)
- HTML编辑器UEditor的简单使用
- HTML编辑器UEditor的简单使用
- ueditor编辑器
- Ueditor编辑器
- UEDITOR编辑器
- ueditor编辑器
- 编辑器ueditor
- UEDITOR编辑器
- 用Ueditor为Asp.net mvc打造可视化HTML编辑器
- 在线HTML编辑器——ueditor,第一次配置
- 在线HTML编辑器——ueditor,跟struts2结合
- Ueditor HTML编辑器图片上传路径修改(php版)
- java jsp使用百度的ueditor html编辑器
- 百度ueditor富文本编辑器插入html代码问题
- 百度编辑器UEditor关闭css,js,html过滤
- Android.mk添加大量.cpp 免除麻烦,只需添加
- [时间管理]TED-如何掌控你的时间
- Nginx配置基础-rewrite
- MJRefresh—快速集成下拉上拉刷新
- 15 个必须知道的 Chrome 开发工具技巧
- 浅用HTML编辑器ueditor
- Qt Creator快捷键
- 不同场景下 MySQL 的迁移方案
- java正则表达式
- amh面板下安装piwik
- 1.Flume概念,功能,架构
- hdu1035
- 没有规划的学习
- LeetCode Algorithm【547 】Friend Circles