# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1236188998 -3600 # Node ID 73591b2ffeb49f968bf44f4cf58715355e4c0ed7 # Parent bcd0c3ae19355dedfc74d9cb032744b766a9d611 should check fckeditor is installed before using the property diff -r bcd0c3ae1935 -r 73591b2ffeb4 entities/__init__.py --- a/entities/__init__.py Wed Mar 04 18:49:36 2009 +0100 +++ b/entities/__init__.py Wed Mar 04 18:49:58 2009 +0100 @@ -416,7 +416,7 @@ `attr`, according to user preferences """ req = self.req - if req.property_value('ui.fckeditor') and self.has_format(attr): + if self.config.fckeditor_installed() and req.property_value('ui.fckeditor') and self.has_format(attr): if self.has_eid() or '%s_format' % attr in self: return self.format(attr) == 'text/html' return req.property_value('ui.default-text-format') == 'text/html'