mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'wip-mdl-51424' of https://github.com/dthies/moodle
This commit is contained in:
commit
2764d7a597
@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
File diff suppressed because one or more lines are too long
@ -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();
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user