Commit 721fd931 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

replace '\\' to '\\\\' in fckeditor_wysiwyg_support, instead of doing in each...

replace '\\' to '\\\\' in fckeditor_wysiwyg_support, instead of doing in each my_text_content field.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31622 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 790af8e6
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<list> <list>
<string>height</string> <string>height</string>
<string>editable</string> <string>editable</string>
<string>default</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -57,12 +56,6 @@ ...@@ -57,12 +56,6 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -108,20 +101,4 @@ ...@@ -108,20 +101,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<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>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
668 669
\ No newline at end of file \ No newline at end of file
...@@ -133,9 +133,7 @@ ...@@ -133,9 +133,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -184,7 +182,7 @@ ...@@ -184,7 +182,7 @@
<item> <item>
<key> <string>text_editor</string> </key> <key> <string>text_editor</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -293,25 +291,6 @@ ...@@ -293,25 +291,6 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.getTextContent().replace(\'\\\\\', \'\\\\\\\\\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <tuple>
......
...@@ -133,9 +133,7 @@ ...@@ -133,9 +133,7 @@
</item> </item>
<item> <item>
<key> <string>default</string> </key> <key> <string>default</string> </key>
<value> <value> <string></string> </value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -184,7 +182,7 @@ ...@@ -184,7 +182,7 @@
<item> <item>
<key> <string>text_editor</string> </key> <key> <string>text_editor</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -293,22 +291,6 @@ ...@@ -293,22 +291,6 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.getTextContent() and here.getTextContent().replace(\'\\\\\', \'\\\\\\\\\') or None</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
......
15 16
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>description</string> <string>description</string>
<string>editable</string> <string>editable</string>
<string>height</string> <string>height</string>
...@@ -59,12 +58,6 @@ ...@@ -59,12 +58,6 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -138,20 +131,4 @@ ...@@ -138,20 +131,4 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: (lambda x: field.get_value(\'text_editor\') == \'fck_editor\' and x.replace(\'\\\\\', \'\\\\\\\\\') or x)(here.getTextContent() or \'\')</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
883 884
\ No newline at end of file \ No newline at end of file
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<tal:block tal:define="baseHrefUrl here/absolute_url;\n <tal:block tal:define="baseHrefUrl here/absolute_url;\n
cleaninput python: inputvalue;\n cleaninput python: inputvalue;\n
cleaninput python: cleaninput.replace(\'\\\\\',\'\\\\\\\\\');\n
cleaninput python: cleaninput.replace(\'\\x27\',\'\\x5C\\x27\');\n cleaninput python: cleaninput.replace(\'\\x27\',\'\\x5C\\x27\');\n
cleaninput python: cleaninput.replace(\'\\r\',\'\\x5C\\x72\');\n cleaninput python: cleaninput.replace(\'\\r\',\'\\x5C\\x72\');\n
cleaninput python: cleaninput.replace(\'\\n\',\'\\x5C\\x6E\');\n cleaninput python: cleaninput.replace(\'\\n\',\'\\x5C\\x6E\');\n
......
863 864
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment