mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-47736_master_fix' of git://github.com/markn86/moodle
This commit is contained in:
commit
fb32a64efc
@ -850,7 +850,8 @@ EditorAutosave.prototype = {
|
||||
response_json = JSON.parse(o.responseText);
|
||||
|
||||
// Revert untouched editor contents to an empty string.
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
|
||||
response_json.result === '<br>') {
|
||||
response_json.result = '';
|
||||
}
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
@ -845,7 +845,8 @@ EditorAutosave.prototype = {
|
||||
response_json = JSON.parse(o.responseText);
|
||||
|
||||
// Revert untouched editor contents to an empty string.
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
|
||||
response_json.result === '<br>') {
|
||||
response_json.result = '';
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,8 @@ EditorAutosave.prototype = {
|
||||
response_json = JSON.parse(o.responseText);
|
||||
|
||||
// Revert untouched editor contents to an empty string.
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>') {
|
||||
if (response_json.result === '<p></p>' || response_json.result === '<p><br></p>' ||
|
||||
response_json.result === '<br>') {
|
||||
response_json.result = '';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user