diff -r abd11be23718 -r ea0c7ac589c4 src/pyams_content/skin/zmi/tinymce.py --- a/src/pyams_content/skin/zmi/tinymce.py Thu Nov 08 08:46:58 2018 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -# -# Copyright (c) 2008-2015 Thierry Florac -# All Rights Reserved. -# -# This software is subject to the provisions of the Zope Public License, -# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. -# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED -# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS -# FOR A PARTICULAR PURPOSE. -# - -__docformat__ = 'restructuredtext' - - -# import standard library - -# import interfaces -from pyams_content.skin import pyams_content -from pyams_form.interfaces.form import IForm -from pyams_skin.interfaces.tinymce import ITinyMCEConfiguration -from pyams_skin.layer import IPyAMSLayer - -# import packages -from pyams_utils.adapter import adapter_config, ContextRequestAdapter -from pyams_utils.fanstatic import get_resource_path - - -@adapter_config(context=(IForm, IPyAMSLayer), provides=ITinyMCEConfiguration) -class TinyMCEEditorConfiguration(ContextRequestAdapter): - """TinyMCE editor configuration""" - - @property - def configuration(self): - return { - 'ams-plugins': 'pyams_content', - 'ams-plugin-pyams_content-src': get_resource_path(pyams_content), - 'ams-plugin-pyams_content-async': 'false', - 'ams-tinymce-init-callback': 'PyAMS_content.TinyMCE.initEditor' - }