搜索中心
搜索中心 搜索快照

前端开发 - JS库-组件

富文本 editor

默认使用了UEditor作为富文本编辑

引入JS

ModStart::js('asset/common/editor.js')

初始化富文本


初始化HTML

    // 全功能
    MS.editor.basic('content');
    // 精简
    MS.editor.simple('content');

弹窗选择器 selectorDialog

使用示例

new MS.selectorDialog({
    server: "",
    callback: function (items) {
        console.log("选择了", items);
    }
}).show();

在弹出的 Iframe 页面中需要通过以下方法来触发关闭并回调

parent.__selectorDialogItems = items;
parent.layer.closeAll();
查看原文
QQ
微信