Ver Código Fonte

编辑器修改

xuchunyang 8 anos atrás
pai
commit
bc5ca014b7
2 arquivos alterados com 3 adições e 3 exclusões
  1. 2 2
      js/ueditor/ueditor.all.js
  2. 1 1
      js/ueditor/ueditor.config.js

+ 2 - 2
js/ueditor/ueditor.all.js

10012
                        break;
10012
                        break;
10013
                    case 'img':
10013
                    case 'img':
10014
                        //todo base64暂时去掉,后边做远程图片上传后,干掉这个
10014
                        //todo base64暂时去掉,后边做远程图片上传后,干掉这个
10015
                        if (val = node.getAttr('src')) {
10015
                       /* if (val = node.getAttr('src')) {
10016
                            if (/^data:/.test(val)) {
10016
                            if (/^data:/.test(val)) {
10017
                                node.parentNode.removeChild(node);
10017
                                node.parentNode.removeChild(node);
10018
                                break;
10018
                                break;
10019
                            }
10019
                            }
10020
                        }
10020
                        }
10021
                        node.setAttr('_src', node.getAttr('src'));
10021
                        node.setAttr('_src', node.getAttr('src'));
10022
                        break;
10022
                        break;*/
10023
                    case 'span':
10023
                    case 'span':
10024
                        if (browser.webkit && (val = node.getStyle('white-space'))) {
10024
                        if (browser.webkit && (val = node.getStyle('white-space'))) {
10025
                            if (/nowrap|normal/.test(val)) {
10025
                            if (/nowrap|normal/.test(val)) {

+ 1 - 1
js/ueditor/ueditor.config.js

35
35
36
        //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义
36
        //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的重新定义
37
        , toolbars: [[
37
        , toolbars: [[
38
            'undo', 'redo', '|',
38
            'fullscreen', 'source', '|', 'undo', 'redo', '|',
39
            'bold', 'italic', 'underline', '|',
39
            'bold', 'italic', 'underline', '|',
40
            'insertorderedlist', 'insertunorderedlist', '|',
40
            'insertorderedlist', 'insertunorderedlist', '|',
41
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
41
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',