Merge branch 'MDL-51424-m29-master' of https://github.com/dthies/moodle into MOODLE_29_STABLE
This commit is contained in:
+7
@@ -1454,6 +1454,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));
|
||||
}
|
||||
|
||||
@@ -1477,6 +1481,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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+7
@@ -1443,6 +1443,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));
|
||||
}
|
||||
|
||||
@@ -1466,6 +1470,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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user