[MERGE] forward port branch 11.0 up to d130f22432

This commit is contained in:
Christophe Simonis
2018-02-05 15:59:31 +01:00
@@ -385,7 +385,15 @@ var RTEWidget = Widget.extend({
} else {
rng = $editable.data('range') || rng;
}
rng.select();
try {
// TODO this line might break for unknown reasons. I suppose that
// the created range is an invalid one. As it might be tricky to
// adapt that line and that it is not a critical one, temporary fix
// is to ignore the errors that this generates.
rng.select();
} catch (e) {
console.log('error', e);
}
history.recordUndo($editable, event, internal_history);
},
/**