Commit a5bd028a authored by Gabriel L. Oliveira's avatar Gabriel L. Oliveira

Automatically display available text editors under User Interface preference

For now, default 'Text Area' and 'FCK Editor' are available by default, and only check if Xinha Editor is available
parent 85f94aa9
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>text_editor_list = [("Plain Text", "text_area"), ("FCK Editor", "fck_editor")]\n
\n
if getattr(context.portal_skins, "erp5_xinha_editor", None) is not None:\n
text_editor_list.append(("Xinha Editor", "xinha"))\n
\n
return text_editor_list\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Preference_getAvailableTextEditorList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -146,7 +146,9 @@ ...@@ -146,7 +146,9 @@
</item> </item>
<item> <item>
<key> <string>items</string> </key> <key> <string>items</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>orientation</string> </key> <key> <string>orientation</string> </key>
...@@ -256,4 +258,17 @@ ...@@ -256,4 +258,17 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </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/Preference_getAvailableTextEditorList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
2011-08-03 gabriel.oliveira
* Automatically display available text editors
2011-07-01 yusei 2011-07-01 yusei
* Add portal_solvers to reindexall script. * Add portal_solvers to reindexall script.
......
40971 40972
\ 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