diff options
| author | Xavier Morel <xmo@openerp.com> | 2013-09-10 11:02:32 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2013-09-10 11:02:32 +0200 |
| commit | 688cd146eff19f7b646ce09c86840cebb32aeef9 (patch) | |
| tree | 7bca1ab7b8ebe495e596cb66b664a663e30c8666 /addons/website/static/src | |
| parent | 8356560144d931c9df22e30a5b178379c11dc9cc (diff) | |
[FIX] disable removal of empty elements in ckeditor
we use empty elements for fontawesome icons, ckeditor removing them is
unexpected and bad nogood.
bzr revid: xmo@openerp.com-20130910090232-p6t5qaveo2q2nyth
Diffstat (limited to 'addons/website/static/src')
| -rw-r--r-- | addons/website/static/src/js/website.editor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index efcd1e31925..867cef2ed13 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -27,6 +27,9 @@ // EDIT ALL THE THINGS CKEDITOR.dtd.$editable = $.extend( {}, CKEDITOR.dtd.$block, CKEDITOR.dtd.$inline); + // Disable removal of empty elements on CKEDITOR activation. Empty + // elements are used for e.g. support of FontAwesome icons + CKEDITOR.dtd.$removeEmpty = {}; } website.init_editor = function () { CKEDITOR.plugins.add('customdialogs', { |
