UEditor入门(二)配置toolbars工具条
2014-05-04 20:24
295 查看
两种方式:
(1)代码中定义
(2)在“ueditor.config.js”文件中统一定义:
现在百度的这个团队应该马上要出一个先的教学文档,但是还木有弄好,地址:http://fex.baidu.com/ueditor/
现在老的文档在网站上已经没有链接进去了,送个传送门,http://ueditor.baidu.com/website/document.html
(1)代码中定义
<script id="container" name="content" type="text/plain">这里写你的初始化内容</script> <script type="text/javascript"> var editor = UE.getEditor('container',{ //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个 toolbars:[['FullScreen', 'Source', 'Undo', 'Redo','bold','test']], //focus时自动清空初始化时的内容 autoClearinitialContent:true, //关闭字数统计 wordCount:false, //关闭elementPath elementPathEnabled:false, //默认的编辑区域高度 initialFrameHeight:300 //更多其他参数,请参考ueditor.config.js中的配置项 }); </script>
(2)在“ueditor.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', '|', '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', 'help', 'drafts'] ]
现在百度的这个团队应该马上要出一个先的教学文档,但是还木有弄好,地址:http://fex.baidu.com/ueditor/
现在老的文档在网站上已经没有链接进去了,送个传送门,http://ueditor.baidu.com/website/document.html
相关文章推荐
- UEditor 自定义配置toolbars工具条
- Cognos入门教程(五)- 配置Apache服务器
- struts入门与配置
- 使用IntelliJ IDEA 配置Maven(入门)
- Maven入门------什么是maven和maven的安装和配置
- JAVA基础1-JAVA入门和JDK的安装与配置
- 前端之Android入门(1) – 环境配置
- 【OpenCV入门教程之二】OPENCV3 开源之美 — 编译源代码、配置opencv_contrib
- nginx配置入门
- 【OpenCV入门教程之一】 OpenCV 2.4.8 +VS2010的开发环境配置
- arcgis for js 从入门到放弃一:初识和配置详解
- scala入门——eclipse下的环境配置
- RabbitMQ消息队列入门篇(环境配置+Java实例+基础概念)
- Maven和 Sonatype Nexus私服的安装、配置及使用入门
- C#/mono开发Android应用程序入门(一)-(配置Mono for Android环境)
- Maven 3 入门 -- 安装与配置
- Hbase入门笔记( 二 )-- Hadoop单机环境配置
- nginx 配置入门
- 【OpenCV入门教程之一】 安装OpenCV:OpenCV 2.4.8或OpenCV 2.4.9 +VS 开发环境配置
- kafka入门:简介、使用场景、设计原理、主要配置及集群搭建