Summernote插入表时添加功能

时间:2017-07-31 13:45:35

标签: javascript jquery summernote

当我在summernote中插入Resizable函数时,我试图在表格中应用Resizable函数。有没有办法做到这一点?

1 个答案:

答案 0 :(得分:0)

幸运的是,这对我有用,

this.insertTable = this.wrapCommand(function (dim) {
        var dimension = dim.split('x');
        var rng = this.createRange().deleteContents();
        rng.insertNode(table.createTable(dimension[0], dimension[1], options));
        $('.note-editable table').resizable({
            handles: "n, w, e, s"
        });
        $('.note-editable td').resizable({
            handles: "e, s"
        });
    });