From a75086f3a69b4055d37e9297356eda1143a6e0ba Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Mon, 12 Feb 2018 16:18:25 +0000 Subject: [PATCH] [erp5_svg_editor] Use the editor gadget to render SVG This adds the maximize button. --- .../Document_viewSVGEditor/my_data.xml | 45 ++++--------------- 1 file changed, 9 insertions(+), 36 deletions(-) diff --git a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Document_viewSVGEditor/my_data.xml b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Document_viewSVGEditor/my_data.xml index 44521970d8..358fb92549 100644 --- a/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Document_viewSVGEditor/my_data.xml +++ b/bt5/erp5_svg_editor/SkinTemplateItem/portal_skins/erp5_svg_editor/Document_viewSVGEditor/my_data.xml @@ -10,7 +10,7 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>gadget_url</string> + <string>css_class</string> <string>title</string> </list> </value> @@ -42,10 +42,6 @@ <key> <string>form_id</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>target</string> </key> - <value> <string></string> </value> - </item> </dictionary> </value> </item> @@ -54,21 +50,15 @@ <value> <dictionary> <item> - <key> <string>field_id</string> </key> + <key> <string>css_class</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>form_id</string> </key> + <key> <string>field_id</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>gadget_url</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>target</string> </key> + <key> <string>form_id</string> </key> <value> <string></string> </value> </item> <item> @@ -82,22 +72,18 @@ <key> <string>values</string> </key> <value> <dictionary> + <item> + <key> <string>css_class</string> </key> + <value> <string>large-gadget</string> </value> + </item> <item> <key> <string>field_id</string> </key> - <value> <string>my_iframe_gadget_field</string> </value> + <value> <string>my_view_mode_text_content</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> - <item> - <key> <string>gadget_url</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>target</string> </key> - <value> <string>Click to edit the target</string> </value> - </item> <item> <key> <string>title</string> </key> <value> <string>Page Content</string> </value> @@ -108,17 +94,4 @@ </dictionary> </pickle> </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <global name="TALESMethod" module="Products.Formulator.TALESField"/> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_text</string> </key> - <value> <string>python:field.restrictedTraverse(\'method-draw/method-draw.gadget.html\').absolute_url() + "?auto_focus=1"</string> </value> - </item> - </dictionary> - </pickle> - </record> </ZopeData> -- 2.30.9