Reputation: 3
I'm trying to apply a Resizable function in the tables when I insert them in summernote. Is there any way to do it?
Upvotes: 0
Views: 928
Reputation: 3
Fortunately, this worked for me,
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"
});
});
Upvotes: 0