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/summernote.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/summernote.js')
| -rw-r--r-- | addons/web_editor/static/src/js/summernote.js | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/web_editor/static/src/js/summernote.js b/addons/web_editor/static/src/js/summernote.js index c9e1be20ce6..365a30b51e6 100644 --- a/addons/web_editor/static/src/js/summernote.js +++ b/addons/web_editor/static/src/js/summernote.js @@ -1162,8 +1162,6 @@ $.summernote.pluginEvents.visible = function (event, editor, layoutInfo) { if (dom.isCell(dom.node(r.sc)) || dom.isCell(dom.node(r.ec))) { remove_table_content(r); r = range.create(r.ec, 0).select(); - } else { - r = r.deleteContents(true); } r.select(); } |
