長い時間の後、私は解決策を持っています。 私はCKeditorViewクラスをオーバーライドします。
from collective.ckeditor.browser.ckeditorview import CKeditorView as BaseView
class CKeditorView(BaseView):
"""
CKeditor overrides
"""
def getCK_plone_config(self):
res = super(CKeditorView, self).getCK_plone_config()
return res
@property
def cke_params(self):
"""
return CKEditor widget Settings
"""
params = super(CKeditorView, self).cke_params
params['filebrowserBrowseUrl'] = "''"
params['filebrowserImageBrowseUrl'] = "''"
params['filebrowserFlashBrowseUrl'] = "''"
return params
:
<!-- ckeditor config view (return a javascript file) -->
<browser:page
name="ckeditor_plone_config.js"
for="zope.interface.Interface"
class=".ckeditorview.CKeditorView"
attribute="getCK_plone_config"
permission="zope.Public"
/>
このコンテンツを新しいファイルckeditorview.pyを追加します。私は、 "私" のconfigure.zcmlに追加しました