diff options
| author | Antoine Guenet <age@odoo.com> | 2019-04-15 13:05:29 +0000 |
|---|---|---|
| committer | Antoine Guenet <age@odoo.com> | 2019-04-25 10:00:43 +0000 |
| commit | 8e89ffb175b3ac11481762c8f044544dcd67ba0e (patch) | |
| tree | ce392f836284704e95be126719bae98f4d5609fa /addons/web_editor/static/src | |
| parent | 91b6c1076c260404aacfa03291126a0a7d2e2797 (diff) | |
[FIX] web_editor: properly convert a checklist to an ordered list
The `o_checklist` class was preserved when converting a checklist to an
ordered list.
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/wysiwyg/plugin/bullet.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg/plugin/bullet.js b/addons/web_editor/static/src/js/wysiwyg/plugin/bullet.js index 506646d4697..59dbdd2c477 100644 --- a/addons/web_editor/static/src/js/wysiwyg/plugin/bullet.js +++ b/addons/web_editor/static/src/js/wysiwyg/plugin/bullet.js @@ -173,6 +173,7 @@ var BulletPlugin = AbstractPlugin.extend({ } else { ul = this.document.createElement(sorted === "ol" ? "ol" : "ul"); ul.className = ol.className; + $(ul).removeClass('o_checklist'); $(ul).insertBefore(ol).append(lis); parent.removeChild(ol); } |
