Updated TinyMCE plug-ins and toolbar in "reduced" mode
authorThierry Florac <tflorac@ulthar.net>
Wed, 10 Oct 2018 17:29:44 +0200
changeset 1011 f82a78ce9963
parent 1010 2b40c8ad9cca
child 1014 6cdae82405f7
Updated TinyMCE plug-ins and toolbar in "reduced" mode
src/pyams_content/component/paragraph/zmi/frame.py
--- a/src/pyams_content/component/paragraph/zmi/frame.py	Tue Oct 09 16:34:15 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/frame.py	Wed Oct 10 17:29:44 2018 +0200
@@ -9,8 +9,6 @@
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
 #
-from pyams_content.component.paragraph import IBaseParagraph
-
 
 __docformat__ = 'restructuredtext'
 
@@ -22,8 +20,8 @@
 from pyams_content.component.association.zmi import AssociationsTable
 from pyams_content.component.association.zmi.interfaces import IAssociationsParentForm
 from pyams_content.component.paragraph.frame import FrameParagraph
-from pyams_content.component.paragraph.interfaces import IParagraphContainer, IParagraphContainerTarget, \
-    PARAGRAPH_HIDDEN_FIELDS
+from pyams_content.component.paragraph.interfaces import IBaseParagraph, IParagraphContainer, \
+    IParagraphContainerTarget, PARAGRAPH_HIDDEN_FIELDS
 from pyams_content.component.paragraph.interfaces.frame import FRAME_PARAGRAPH_TYPE, IFrameParagraph
 from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \
     BaseParagraphAddMenu, BaseParagraphPropertiesEditForm, IParagraphInnerEditFormButtons, IParagraphTitleValue, \
@@ -37,7 +35,7 @@
 from pyams_form.interfaces.form import IInnerForm
 from pyams_i18n.interfaces import II18n
 from pyams_pagelet.pagelet import pagelet_config
-from pyams_skin.event import get_json_switched_table_refresh_event, get_json_widget_refresh_event
+from pyams_skin.event import get_json_switched_table_refresh_event
 from pyams_skin.interfaces.tinymce import ITinyMCEConfiguration
 from pyams_skin.interfaces.viewlet import IToolbarAddingMenu
 from pyams_skin.layer import IPyAMSLayer
@@ -66,8 +64,8 @@
 
     configuration = {
         'ams-tinymce-menubar': False,
-        'ams-tinymce-plugins': ['lists', ],
-        'ams-tinymce-toolbar': 'undo redo | bold italic | bullist numlist',
+        'ams-tinymce-plugins': ['paste', 'lists'],
+        'ams-tinymce-toolbar': 'undo redo | pastetext | bold italic | bullist numlist',
         'ams-tinymce-toolbar1': False,
         'ams-tinymce-toolbar2': False,
         'ams-tinymce-height': 150