Commit 2764d7a5 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'wip-mdl-51424' of https://github.com/dthies/moodle

parents 747554d3 c8719db1
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -57,6 +57,10 @@ EditorCommand.prototype = {
// 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));
}
......@@ -80,6 +84,9 @@ EditorCommand.prototype = {
// 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();
},
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment