经验分享

百度编辑器toolbarstoolbars工具条功能按钮参考

我的站长站 2019-06-13 人阅读

修改ueditor.config.js里面的toolbars,以下是默认的toolbars代码

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'] 
        ]

下面是网上收藏的toolbars中文参考表,方便修改。

, toolbars: [[
‘link‘, //超链接
‘unlink‘, //取消链接
‘|‘,
‘forecolor‘, //字体颜色
‘backcolor‘, //背景色
‘fontfamily‘, //字体
‘fontsize‘, //字号        
‘|‘,        
‘bold‘, //加粗
‘italic‘, //斜体
‘underline‘, //下划线
‘strikethrough‘, //删除线
‘|‘,
‘formatmatch‘, //格式刷
‘removeformat‘, //清除格式
‘|‘,
‘insertorderedlist‘, //有序列表
‘insertunorderedlist‘, //无序列表
‘|‘,
‘inserttable‘, //插入表格
‘paragraph‘, //段落格式
‘simpleupload‘, //单图上传
‘imagecenter‘, //居中
‘attachment‘, //附件   
‘|‘,
‘justifyleft‘, //居左对齐
‘justifycenter‘, //居中对齐
‘horizontal‘, //分隔线
‘|‘,
‘blockquote‘, //引用
‘insertcode‘, //代码语言      
‘|‘,
‘source‘, //源代码
‘preview‘, //预览
‘fullscreen‘, //全屏
]]

不需要的工具按钮删掉就可以了

相关专题
编辑器
编辑器
2021-05-14 209

编辑器是网站开发必备插件,编辑器专题为大家整理各类型编辑器下载,包含热门的CMS程序编辑器插件下载,html编辑器源码下载等等....

相关推荐
  • 百度编辑器
  • ueditor
  • 帝国cms7.5整合百度ueditor编辑器
    帝国cms7.5整合百度ueditor编辑器

    完美集成了帝国cms,不需要修改帝国cms核心代码。加入了管理验证功能。集成步骤简单。帝国cms7.5整合百度ueditor编辑器步骤1.下载定制好的百度插件,下载后解压到e/extend/lskue目录下即可2.在后台...

    帝国cms插件 1749 5年前
  • 帝国CMS7.2百度编辑器修改版插件
    帝国CMS7.2百度编辑器修改版插件

    为什么要介绍这款帝国百度编辑器了?因为站长在以往更新网站时遇到一个问题,就是按照网上方法安装的百度编辑器有个问题,就是贴入的PHP,JS代码有时候不能保存。类是这种方法安装的帝国CMS百度编辑器:h...

    帝国cms插件 2007 6年前
  • 帝国CMS百度编辑器一键排版插件
    帝国CMS百度编辑器一键排版插件

    当我们需要借鉴其他网站内容时候,最苦恼的就是花上大把时间去编辑复制过来的内容代码。需要逐个清楚内容代码中不需要的代码,虽然大部分编辑器都有清除辣鸡代码的功能,但有时候并不能满足我们自身的...

    帝国cms插件 2388 6年前
  • ueditor百度编辑器路径加载错误解决方法

    ueditor路径错误分析如果你的帝国CMS使用了ueditor百度编辑器可以收藏下这篇文章,网站环境如果使用了CDN或者其他缓存服务,那么ueditor百度编辑器的初始化样式文件路径加载就会错误。所有的样式文件加载路径都解析错误了,查看后发现是ueditor.config.js...

    帝国cms教程 64 1年前
  • 帝国cms7.0整合百度编辑器ueditor教程
    帝国cms7.0整合百度编辑器ueditor教程

    帝国cms7.0整合百度编辑器ueditor教程开始1、根据自己使用的帝国cms版本编码下载对应的ueditor版本下载地址 http://ueditor.baidu.com/website/download.html#ueditor 2、解压附件,重命名为”ued...

    帝国cms教程 1418 9年前
  • discuz二次开发更换百度ueditor编辑器

    修改前必读:1、修改编辑器后会造成以前发过的帖子再次进行修改时(也就是编辑帖子操作)出现很多被DZ重写过的html标签,不方便进行修改,所以尽量在安装DZ后立刻进行修改。(当然,如果你有能力重写代码的话就可以无视啦)2、修改前请先在本地进行尝试或备份相关...

    discuz教程 1001 7年前
最新更新