[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:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user