网站首页 文章专栏 百度编辑器的全部按钮

百度编辑器的全部按钮

编辑时间:2018-08-23 14:21:36 作者:苹果 浏览量:2099


    前言:百度编辑器的全部按钮及引入方式


官网下载地址:http://ueditor.baidu.com/website/download.html

                    
                     <script>
                        var UEDITOR_SAVE_PATH = "path";//上传地址
                    </script>
                    <script type="text/javascript" src="{:C('static_site_url')}plugin/ue/ueditor.config.js"></script>
                    <script type="text/javascript" src="{:C('static_site_url')}plugin/ue/ueditor.all.js"></script>
                    <script type="text/javascript">
                        var ue = UE.getEditor('content', {
                        	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', '|',
                        			'print', 'preview', 'searchreplace', 'help', 'macros',
                        		]
                        	],
                        	autoHeightEnabled: false,
                        	autoFloatEnabled: true,
                        	initialFrameHeight: 600,
                        	pasteplain: true,
                        	elementPathEnabled: false,
                        	wordCount: false
                        });
                    </script>



    出自:何冰华个人网站

    地址:https://www.hebinghua.com/

    转载请注明出处


来说两句吧
最新评论