Merge branch 'MDL-44810-master' of git://github.com/jethac/moodle

Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-plugin/moodle-editor_atto-plugin-min.js
This commit is contained in:
Dan Poltawski
2014-04-08 12:04:41 +08:00
5 changed files with 26 additions and 2 deletions
@@ -96,6 +96,11 @@ Y.extend(EditorPlugin, Y.Base, {
* @method markUpdated
*/
markUpdated: function() {
// Save selection after changes to the DOM. If you don't do this here,
// subsequent calls to restoreSelection() will fail expecting the
// previous DOM state.
this.get('host').saveSelection();
return this.get('host').updateOriginal();
}
}, {
@@ -747,6 +752,9 @@ EditorPluginButtons.prototype = {
// Build the arguments list, but remove the callback we're calling.
var args = [e, callbackArgs];
// Restore selection before making changes.
this.get('host').restoreSelection();
// Actually call the callback now.
return callback.apply(this, args);
},
File diff suppressed because one or more lines are too long
@@ -96,6 +96,11 @@ Y.extend(EditorPlugin, Y.Base, {
* @method markUpdated
*/
markUpdated: function() {
// Save selection after changes to the DOM. If you don't do this here,
// subsequent calls to restoreSelection() will fail expecting the
// previous DOM state.
this.get('host').saveSelection();
return this.get('host').updateOriginal();
}
}, {
@@ -745,6 +750,9 @@ EditorPluginButtons.prototype = {
// Build the arguments list, but remove the callback we're calling.
var args = [e, callbackArgs];
// Restore selection before making changes.
this.get('host').restoreSelection();
// Actually call the callback now.
return callback.apply(this, args);
},
@@ -604,6 +604,9 @@ EditorPluginButtons.prototype = {
// Build the arguments list, but remove the callback we're calling.
var args = [e, callbackArgs];
// Restore selection before making changes.
this.get('host').restoreSelection();
// Actually call the callback now.
return callback.apply(this, args);
},
+5
View File
@@ -94,6 +94,11 @@ Y.extend(EditorPlugin, Y.Base, {
* @method markUpdated
*/
markUpdated: function() {
// Save selection after changes to the DOM. If you don't do this here,
// subsequent calls to restoreSelection() will fail expecting the
// previous DOM state.
this.get('host').saveSelection();
return this.get('host').updateOriginal();
}
}, {