From efc84c7ff801ee6f4e29f9fb44b0f62444e2dd24 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Sun, 21 Nov 2010 14:35:35 +0000
Subject: [PATCH] 2010-11-21 gabriel * Clear the text_content field to use SVG
 Editor from EditorField

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40435 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../text_content.xml                          | 27 +++----------------
 bt5/erp5_svg_editor/bt/change_log             |  3 +++
 bt5/erp5_svg_editor/bt/revision               |  2 +-
 3 files changed, 8 insertions(+), 24 deletions(-)

diff --git a/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml
index c7a9752705..aee90db8a2 100644
--- a/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml
+++ b/bt5/erp5_svg_editor/PathTemplateItem/portal_skins/erp5_web/WebIllustration_viewEditor/text_content.xml
@@ -134,9 +134,7 @@
                 </item>
                 <item>
                     <key> <string>default</string> </key>
-                    <value>
-                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
-                    </value>
+                    <value> <string></string> </value>
                 </item>
                 <item>
                     <key> <string>description</string> </key>
@@ -219,11 +217,7 @@
                 </item>
                 <item>
                     <key> <string>default</string> </key>
-                    <value> <string encoding="cdata"><![CDATA[
-
-<iframe name="svgframe" id="svgframe" src="portal_skins/erp5_jquery/plugin/svg-editor/svg-editor.html" width="750" height="600"/>
-
-]]></string> </value>
+                    <value> <string></string> </value>
                 </item>
                 <item>
                     <key> <string>description</string> </key>
@@ -231,7 +225,7 @@
                 </item>
                 <item>
                     <key> <string>editable</string> </key>
-                    <value> <int>0</int> </value>
+                    <value> <int>1</int> </value>
                 </item>
                 <item>
                     <key> <string>enabled</string> </key>
@@ -271,7 +265,7 @@
                 </item>
                 <item>
                     <key> <string>text_editor</string> </key>
-                    <value> <string>text_area</string> </value>
+                    <value> <string>svg_editor</string> </value>
                 </item>
                 <item>
                     <key> <string>title</string> </key>
@@ -295,17 +289,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>here/WebIllustration_renderSVGEditor</string> </value>
-        </item>
-      </dictionary>
-    </pickle>
-  </record>
 </ZopeData>
diff --git a/bt5/erp5_svg_editor/bt/change_log b/bt5/erp5_svg_editor/bt/change_log
index 60f1124a40..a5b2f9fea8 100644
--- a/bt5/erp5_svg_editor/bt/change_log
+++ b/bt5/erp5_svg_editor/bt/change_log
@@ -1,3 +1,6 @@
+2010-11-21 gabriel
+* Clear the text_content field to use SVG Editor from EditorField
+
 2010-11-09 gabriel
 * Initial implementation to SVG Editor to be supported in EditorField
 
diff --git a/bt5/erp5_svg_editor/bt/revision b/bt5/erp5_svg_editor/bt/revision
index 19c7bdba7b..25bf17fc5a 100644
--- a/bt5/erp5_svg_editor/bt/revision
+++ b/bt5/erp5_svg_editor/bt/revision
@@ -1 +1 @@
-16
\ No newline at end of file
+18
\ No newline at end of file
-- 
2.30.9