diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2015-10-02 14:13:22 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2015-10-09 08:43:43 +0200 |
| commit | 8c3b4b80c6393a9f5ea7f05fd697f33333e24094 (patch) | |
| tree | 69cf4053b8613a4b26869763b3583390e464b62c /addons/website/data/web_planner_data.xml | |
| parent | e80e1e1c2893b73d71b096123ebfca6b5ed1933d (diff) | |
[FIX] web_editor: null range and remember_selection
Tests for null range were not done in #8845, so in given case (where the
focus is not in the editor) we could get an issue.
The code for remembering the selection when clicking the editor
was made useful in d33086c03fc, but there was an edge case when
the editor itself was in a modal: then the selection would be lost.
This commit change the code as following:
1) restore the selected range if:
- the current selected range is not in the editable of the active editor
- there is a corresponding saved selected range or we are in an embeded
editor (and not in air mode as when editing the website)
2) save the selected range if:
- we don't restore the selection,
- the current selected range is in the active editor editable area
Diffstat (limited to 'addons/website/data/web_planner_data.xml')
0 files changed, 0 insertions, 0 deletions
