UEditor入门(二)配置toolbars工具条
来源:互联网 发布:怎么做微信淘宝客 编辑:程序博客网 时间:2024/05/16 15:12
两种方式:
(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
1 0
- UEditor入门(二)配置toolbars工具条
- UEditor 自定义配置toolbars工具条
- 3-2 创建菜单和工具条(Creating Menus and Toolbars)
- UEditor自定义toolbar工具条
- Toolbars
- UEditor对于工具条的自定义
- Ueditor(二):添加字体
- Ueditor配置(Net版)
- ueditor配置
- ueditor配置
- Ueditor使用教程(入门级)
- UEditor配置,上传图片和附件(二):跨域上传
- SSM配置Ueditor实现图片的上传<二>
- ckeditor工具条配置
- GEF入门系列(六、添加菜单和工具条)
- WTL入门(3)---工具条和状态条
- (转)WTL入门(3)---工具条和状态条
- UEditor配置笔记(持续更新中)
- Wlan开关/Wifi开关变灰无法开启的问题(win8/win8.1系统)
- 如何解决git提交代码冲突
- 分割含有中英文的字符串
- Pig——Performance Enhancers(性能优化1)
- windows下怎么把jsp部署到tomcat服务器
- UEditor入门(二)配置toolbars工具条
- windows 安装rabbitmq
- Windows 7系统开启AHCI 提升硬盘性能
- mini2440 Ubuntu安装配置
- UNPV3第五章TCP客户/服务器程序示例
- java多线程编程中实现Runnable接口方法相对于继承Thread方法的优势
- SlidesJS插件的使用
- nefu 667
- 恩