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', {