zoukankan      html  css  js  c++  java
  • ueditor简易配置

    ueditor简洁版配置

    1.功能菜单常用配置,去除不需要的功能按钮;

    2.默认不粘帖样式,适配触屏版

    var ue = UE.getEditor('editor',{
            toolbars: [
                [
                    'source', //源代码
                    'undo', //撤销
                    'redo', //重做
                    'bold', //加粗
                    'indent', //首行缩进
                    'italic', //斜体
                    'underline', //下划线
                    'strikethrough', //删除线
                    'forecolor', //字体颜色
                    'subscript', //下标
                    'superscript', //上标
                    'formatmatch', //格式刷
                    'blockquote', //引用
                    'pasteplain', //纯文本粘贴模式
                    'selectall', //全选
                    'preview', //预览
                    'horizontal', //分隔线
                    'removeformat', //清除格式
                    'unlink', //取消链接
                    'inserttitle', //插入标题
                    'cleardoc', //清空文档
                    'fontfamily', //字体
                    //'fontsize', //字号
                    'paragraph', //段落格式
                    'simpleupload', //单图上传
                    'insertimage', //多图上传
                    'link', //超链接
                    'emotion', //表情
                    'spechars', //特殊字符
                    'fontborder', //字符边框
                    'searchreplace', //查询替换
                    'insertvideo', //视频
                    'help', //帮助
                    'justifyleft', //居左对齐
                    'justifyright', //居右对齐
                    'justifycenter', //居中对齐
                    'justifyjustify', //两端对齐
                    'backcolor', //背景色
                    'fullscreen', //全屏
                    'imagenone', //默认
                    'imageleft', //左浮动
                    'imageright', //右浮动
                    'imagecenter', //居中
                    'lineheight', //行间距
                    'edittip ', //编辑提示
                    'touppercase', //字母大写
                    'tolowercase', //字母小写
                    'background', //背景
                    'music'//音乐
                ]
            ],
            //pasteplain: true, //纯文本粘贴
            retainOnlyLabelPasted: true,//粘贴只保留标签,去除标签所有属性
            autotypeset: false
        });
  • 相关阅读:
    安装windows系统(win7)
    三大跨平台网盘--dropbox
    三大跨平台网盘--google driver
    三大跨平台网盘--ubuntu one
    ubuntu制作usb启动盘
    高斯滤镜
    gimp之旅
    JAVAOOP集合框架
    JAVAOOP异常
    JAVAOOP多态
  • 原文地址:https://www.cnblogs.com/lw5116/p/8512984.html
Copyright © 2011-2022 走看看