diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-03-09 12:03:40 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-03-09 16:33:03 +0100 |
| commit | 513d1a26d10b61aacea8cf06ccb2fef08e20d1f6 (patch) | |
| tree | d08c310b9496291aac0d29d7c4db1353e0cb2b60 /addons/website/static/lib/summernote/src/js/EventHandler.js | |
| parent | 6cce8d5a552eee8f36aaa0200e0940e74c428f9a (diff) | |
[FIX] summernote: Summernote change the native id of the editable area if a script use a unique id, summernote break the default comportment. Replace id by data-note-id to set the editor 'id'
Diffstat (limited to 'addons/website/static/lib/summernote/src/js/EventHandler.js')
| -rw-r--r-- | addons/website/static/lib/summernote/src/js/EventHandler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/lib/summernote/src/js/EventHandler.js b/addons/website/static/lib/summernote/src/js/EventHandler.js index faa6a7eadaf..9d5174c6fe6 100644 --- a/addons/website/static/lib/summernote/src/js/EventHandler.js +++ b/addons/website/static/lib/summernote/src/js/EventHandler.js @@ -48,7 +48,7 @@ define([ if ($target.is('.note-editor, .note-air-editor')) { $editor = $target; } else { - $editor = $('#note-editor-' + list.last($target.attr('id').split('-'))); + $editor = $('[data-note-id="' + list.last($target.attr('id')) + '"]'); } return dom.buildLayoutInfo($editor); |
