diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-10-23 18:02:45 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-10-23 18:02:45 +0200 |
| commit | ce2eb8464b4387e98cd3b1081340cdebb586f2b3 (patch) | |
| tree | 416031da80cbd85804f2b1ff48ccd6f763dab3b3 /addons/web_editor | |
| parent | ef670016e6df436e30fef12d1915c6cec2b9d62a (diff) | |
| parent | d5cc05c9948c744f8f011250380cea20f9f859b2 (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.js | 8 |
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 |
