// Collapse selection so cursor is at end of inserted material.
selection.collapseToEnd();
+
+ // Save save selection and editor contents.
+ this.saveSelection();
+ this.updateOriginal();
}, this, e, callback, context, args, anchorNode, anchorOffset));
}
// The range is not collapsed; so apply callback method immediately.
callback.apply(context, [e, args]);
+ // Save save selection and editor contents.
+ this.saveSelection();
+ this.updateOriginal();
},
/**