diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-09-02 09:40:54 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-09-02 10:04:58 +0100 |
| commit | c227b8fd88e0ed635a8e807501b559b46fee7786 (patch) | |
| tree | 5f837066c5f7faa20efd233915ef4bb487c11a2a /addons/web_editor/static/src/js/rte.js | |
| parent | 8c0c308eca992812ab90e543a40826c31e22959a (diff) | |
[FIX] web_editor: remove some defaults in text edition
* On firefox, you had to click twice on a link to be able to start
typing text
* When selecting text which contained a <br/>, you were not able to
replacing it correctly (you had to click again before starting typing)
* When replacing a whole paragraph content which was below a title,
the text was not replaced and you had to click again and the title
transformed into a paragraph.
* ...
Diffstat (limited to 'addons/web_editor/static/src/js/rte.js')
| -rw-r--r-- | addons/web_editor/static/src/js/rte.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/rte.js b/addons/web_editor/static/src/js/rte.js index 910784f8686..1ed12eb4a73 100644 --- a/addons/web_editor/static/src/js/rte.js +++ b/addons/web_editor/static/src/js/rte.js @@ -510,6 +510,7 @@ var RTE = Widget.extend({ $target.attr('contenteditable', true); _.defer(function () { $editable.attr('contenteditable', false); + $target.focus(); }); // Once clicked outside, remove contenteditable on link and reactive all |
