Merge branch 'MDL-49693-master' of git://github.com/merrill-oakland/moodle

Conflicts:
	lib/editor/atto/yui/build/moodle-editor_atto-editor/moodle-editor_atto-editor-min.js
This commit is contained in:
Eloy Lafuente (stronk7)
2015-04-02 11:05:32 +02:00
4 changed files with 16 additions and 19 deletions
@@ -675,16 +675,15 @@ EditorTextArea.prototype = {
// Clear it first.
this.editor.setHTML('');
// Copy text to editable div.
this.editor.append(this.textarea.get('value'));
// Clean it.
this.cleanEditorHTML();
// Copy cleaned HTML to editable div.
this.editor.append(this._cleanHTML(this.textarea.get('value')));
// Insert a paragraph in the empty contenteditable div.
if (this.editor.getHTML() === '') {
this.editor.setHTML(this._getEmptyContent());
}
return this;
},
/**
File diff suppressed because one or more lines are too long
@@ -670,16 +670,15 @@ EditorTextArea.prototype = {
// Clear it first.
this.editor.setHTML('');
// Copy text to editable div.
this.editor.append(this.textarea.get('value'));
// Clean it.
this.cleanEditorHTML();
// Copy cleaned HTML to editable div.
this.editor.append(this._cleanHTML(this.textarea.get('value')));
// Insert a paragraph in the empty contenteditable div.
if (this.editor.getHTML() === '') {
this.editor.setHTML(this._getEmptyContent());
}
return this;
},
/**
+4 -5
View File
@@ -64,16 +64,15 @@ EditorTextArea.prototype = {
// Clear it first.
this.editor.setHTML('');
// Copy text to editable div.
this.editor.append(this.textarea.get('value'));
// Clean it.
this.cleanEditorHTML();
// Copy cleaned HTML to editable div.
this.editor.append(this._cleanHTML(this.textarea.get('value')));
// Insert a paragraph in the empty contenteditable div.
if (this.editor.getHTML() === '') {
this.editor.setHTML(this._getEmptyContent());
}
return this;
},
/**