[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
This commit is contained in:
Xavier Morel
2013-09-10 11:02:32 +02:00
parent 8356560144
commit 688cd146ef
@@ -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', {