# HG changeset patch
# User sylvain.thenault@logilab.fr
# Date 1236189932 -3600
#      Wed Mar 04 19:05:32 2009 +0100
# Branch tls-sprint
# Node ID 1a25f5d85952f223a7fecdba65ce7b352b0cef3e
# Parent  4afe4209a596d0e0cfd24ce4b342da82fa3ffbba
use req.use_fckeditor

diff --git a/views.py b/views.py
--- a/views.py
+++ b/views.py
@@ -240,9 +240,7 @@
         if action is not None:
             url = ajax_replace_url('comment%sHolder' % eid, rql_for_eid(eid), 'inlinecomment')
             reply = u' (<a href="%s">%s</a>)' % (url, req._(action.title))
-            if req.property_value('ui.fckeditor') and \
-                   req.property_value('ui.default-text-format') == 'text/html':
-                req.add_js('fckeditor.js')
+            if req.use_fckeditor() and req.property_value('ui.default-text-format') == 'text/html':
                 req.fckeditor_config()
         else:
             reply = u''