Commit 2f727158 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_xinha_editor: allow override xinha css

author: Sven Franck
parent d191900b
......@@ -9,6 +9,7 @@ function xinha_init()
{
if(!Xinha.loadPlugins(xinha_plugins, xinha_init)) return;
var xinha_config = new Xinha.Config();
xinha_config.pageStyleSheets = ["xinha_custom.css"];
xinha_editors = Xinha.makeEditors(xinha_editors, xinha_config, xinha_plugins);
Xinha.startEditors(xinha_editors);
}
......
/* override from other portal skins */
\ No newline at end of file
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__name__</string> </key>
<value> <string>xinha_custom.css</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<tal:block tal:define="site_root python: here.getWebSiteValue() or here.getPortalObject();
portal_url python: site_root.absolute_url();">
<script type="text/javascript" tal:content="structure string:
_editor_url = '${portal_url}/xinha'">
_editor_url = '${portal_url}/xinha';">
</script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/XinhaCore.js"></script>
<script type="text/javascript" tal:attributes="src string:${portal_url}/xinha/LoadEditor.js"></script>
......
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