From 1ce710df386d2602f2fb423197a035436e47f131 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Wed, 16 Jul 2008 13:50:12 +0000 Subject: [PATCH] Backslashes must be escaped only with FCK editor. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22507 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../WebPage_viewEditor/my_text_content.xml | 18 ++++++------------ bt5/erp5_web/bt/revision | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewEditor/my_text_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewEditor/my_text_content.xml index 1f43a722b5..c6721a49a0 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewEditor/my_text_content.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewEditor/my_text_content.xml @@ -301,18 +301,15 @@ <record id="2" aka="AAAAAAAAAAI="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:here.getTextContent().replace(\'\\\\\', \'\\\\\\\\\')</string> </value> + <value> <string>python: (lambda x: field.get_value(\'text_editor\') == \'fck_editor\' and x.replace(\'\\\\\', \'\\\\\\\\\') or x)(here.getTextContent())</string> </value> </item> </dictionary> </pickle> @@ -320,18 +317,15 @@ <record id="3" aka="AAAAAAAAAAM="> <pickle> <tuple> - <tuple> - <string>Products.Formulator.TALESField</string> - <string>TALESMethod</string> - </tuple> - <none/> + <global name="TALESMethod" module="Products.Formulator.TALESField"/> + <tuple/> </tuple> </pickle> <pickle> <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python:(here.getTextFormat() == \'text/html\' and here.portal_preferences.getPreferredTextEditor()) or \'text_area\'</string> </value> + <value> <string>python: here.getTextFormat() == \'text/html\' and here.portal_preferences.getPreferredTextEditor() or \'text_area\'</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 8a2602231b..6e1d38407b 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -686 \ No newline at end of file +687 \ No newline at end of file -- 2.30.9