diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-12-04 15:29:53 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-12-04 16:03:37 +0100 |
| commit | e6146db88a13d8cb3129038264d2fa4bf8e207d5 (patch) | |
| tree | 39a453cd283b31189d68156d3bab398fd3e1519a /addons/web/static/src/js | |
| parent | ab42507d460125c5ee81bb6b4b859146494339ac (diff) | |
[FIX] web_editor: make sure html editor does not ignore changes
For some reason, Summernote does not trigger a change event in some
cases. It looks like it happens in 'codeview' mode, and when the change
in question is only a backspace key event. Maybe it listen for keypress
and backspace do not trigger keypress event.
In any cases, the situation is that it is not easy to clear an html
field: going in edit mode, then selecting the content and pressing
backspace will not work before this commit.
With this commit, we specifically compare the value in the editor with
the current value to determine if the field is dirty.
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
