summaryrefslogtreecommitdiff
path: root/addons/web_editor
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-10-23 18:02:45 +0200
committerChristophe Simonis <chs@odoo.com>2018-10-23 18:02:45 +0200
commitce2eb8464b4387e98cd3b1081340cdebb586f2b3 (patch)
tree416031da80cbd85804f2b1ff48ccd6f763dab3b3 /addons/web_editor
parentef670016e6df436e30fef12d1915c6cec2b9d62a (diff)
parentd5cc05c9948c744f8f011250380cea20f9f859b2 (diff)
[MERGE] forward port branch 10.0 up to d5cc05c9948
Diffstat (limited to 'addons/web_editor')
-rw-r--r--addons/web_editor/static/src/js/rte.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/rte.js b/addons/web_editor/static/src/js/rte.js
index da2c2acd5e0..940d8482341 100644
--- a/addons/web_editor/static/src/js/rte.js
+++ b/addons/web_editor/static/src/js/rte.js
@@ -518,6 +518,14 @@ var RTE = Widget.extend({
return;
}
+ // Removes strange _moz_abspos attribute when it appears. Cannot
+ // find another solution which works in all cases. A grabber still
+ // appears at the same time which I did not manage to remove.
+ // TODO find a complete and better solution
+ _.defer(function () {
+ $editable.find('[_moz_abspos]').removeAttr('_moz_abspos');
+ });
+
if ($target.is('a')) {
/**
* Remove content editable everywhere and add it on the link only so that characters can be added