diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-01-20 11:03:25 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-01-20 13:23:23 +0100 |
| commit | 86b80689d712a3afb2e4119cbdaab896c8721599 (patch) | |
| tree | 135606a4a84944748e5a1ae1975fc0c43dd7f49b /addons/web_editor/static/lib/summernote/src | |
| parent | 366980e5505c0cf3a5d73abb03fd68868fe744a0 (diff) | |
[FIX] web_editor: remove empty table ligne when paste content
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src')
| -rw-r--r-- | addons/web_editor/static/lib/summernote/src/js/module/Clipboard.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/lib/summernote/src/js/module/Clipboard.js b/addons/web_editor/static/lib/summernote/src/js/module/Clipboard.js index 1d5a99b31f5..419f52c8fc3 100644 --- a/addons/web_editor/static/lib/summernote/src/js/module/Clipboard.js +++ b/addons/web_editor/static/lib/summernote/src/js/module/Clipboard.js @@ -156,6 +156,12 @@ define([ } }); + // remove empty table row and td + var $tdr; + while(($tdr = $node.find('tr:empty, td:empty, th:empty, tbody:empty, t-head:empty, table:empty')) && $tdr.length) { + $tdr.remove(); + } + /* reset architecture HTML node and add <p> tag */ |
