From 688cd146eff19f7b646ce09c86840cebb32aeef9 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 10 Sep 2013 11:02:32 +0200 Subject: [PATCH] [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 --- addons/website/static/src/js/website.editor.js | 3 +++ 1 file changed, 3 insertions(+) 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', {