Commit 4302220a authored by Ivan Tyagov's avatar Ivan Tyagov

When generating an image URLfor FCKEditor include its format (use preferences)...

When generating an image URLfor FCKEditor include its format (use preferences) which is mandatory in order to produce an image output.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40124 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9dab53de
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -59,7 +56,8 @@ if brain.getValidationState() == \'embedded\':\n ...@@ -59,7 +56,8 @@ if brain.getValidationState() == \'embedded\':\n
reference = brain.getId()\n reference = brain.getId()\n
else:\n else:\n
reference = brain.getReference()\n reference = brain.getReference()\n
return "javascript:SelectFile(\'%s\')" % reference.replace("\'", "\\\\\'")\n format = context.getPortalObject().portal_preferences.getPreferredImageFormat()\n
return "javascript:SelectFile(\'%s?format=%s\')" % (reference.replace("\'", "\\\\\'"), format)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -100,6 +98,8 @@ return "javascript:SelectFile(\'%s\')" % reference.replace("\'", "\\\\\'")\n ...@@ -100,6 +98,8 @@ return "javascript:SelectFile(\'%s\')" % reference.replace("\'", "\\\\\'")\n
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>reference</string> <string>reference</string>
<string>context</string>
<string>format</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1206 1207
\ 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