Commit 964c02c3 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

Merge branch 'MDL-51424-m28-master' of https://github.com/dthies/moodle into MOODLE_28_STABLE

parents 868fb3ad 45e591a8
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