diff -r 6d0f21087473 -r 8a16d2f507d7 src/pyams_content/component/paragraph/zmi/html.py --- a/src/pyams_content/component/paragraph/zmi/html.py Mon Oct 02 15:24:08 2017 +0200 +++ b/src/pyams_content/component/paragraph/zmi/html.py Mon Oct 02 17:03:26 2017 +0200 @@ -34,11 +34,10 @@ # import packages from pyams_content.component.association.zmi import AssociationsTable from pyams_content.component.paragraph.html import HTMLParagraph -from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm +from pyams_content.component.paragraph.zmi import BaseParagraphAJAXAddForm, BaseParagraphAJAXEditForm, \ + BaseParagraphAddMenu from pyams_content.component.paragraph.zmi.container import ParagraphContainerView -from pyams_form.security import ProtectedFormObjectMixin from pyams_pagelet.pagelet import pagelet_config -from pyams_skin.viewlet.toolbar import ToolbarMenuItem from pyams_template.template import template_config from pyams_utils.adapter import adapter_config @@ -59,13 +58,13 @@ @viewlet_config(name='add-html-paragraph.menu', context=IParagraphContainerTarget, view=ParagraphContainerView, layer=IPyAMSLayer, manager=IToolbarAddingMenu, weight=50) -class HTMLParagraphAddMenu(ProtectedFormObjectMixin, ToolbarMenuItem): +class HTMLParagraphAddMenu(BaseParagraphAddMenu): """HTML paragraph add menu""" label = _("Add HTML paragraph...") label_css_class = 'fa fa-fw fa-html5' url = 'add-html-paragraph.html' - modal_target = True + paragraph_type = 'HTML' @pagelet_config(name='add-html-paragraph.html', context=IParagraphContainerTarget, layer=IPyAMSLayer,