为了账号安全,请及时绑定邮箱和手机立即绑定

啊啊啊啊啊啊啊啊啊啊啊aaaaaaaaaaaaa

/ 猿问

啊啊啊啊啊啊啊啊啊啊啊aaaaaaaaaaaaa

hi_your 2019-01-24 23:52:39
define(['simditor'], function (Simditor) {
    return function (params) {
        var defaultParams = {
            cleanPaste: false,
            pasteImage: false,
            defaultImage: false,
            imageButton: ['upload'],
            allowedAttributes: {
                p: [],
                font: [],
                code: ['class'],
                img: ['src', 'alt', 'width', 'height', 'data-non-image', 'data-emoji'],
                a: ['href', 'target'],
            },
            allowedStyles: {
                span: [],
                b: [],
                i: [],
                strong: [],
                strike: [],
                u: [],
                p: [],
                h1: [],
                h2: [],
                h3: [],
                h4: [],
            },
            toolbar: ['title', 'bold', 'ol', 'ul', 'hr', 'blockquote', 'code', 'table', 'link', 'image', 'emoji'],
            // defaultImage: config.baseUrl + '/js/libs/editor/images/image.png',
            upload: {
                url: config.apiUrl + '/api/upload/editor-image',
            },
            emoji: {
                imagePath: config.baseUrl + '/js/libs/editor/extends-emoji/images/emoji/'
            },
            mention: {
                url: config.host + "api/user-search/username",
            },

        };
        return new Simditor($.extend({}, defaultParams, params));
    }
});


查看完整描述

目前暂无任何回答

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信