From 16cf48c05a7774d2aff86ae4ecdb518eb7702305 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Wed, 24 Sep 2008 09:14:41 +0000 Subject: [PATCH] 2008-09-24 fabien * Add file fckstyles.xml to have one more style : "Python code" wich improve python code blocks displaying. * Modify erp5_editor.css file to display this new div class in a nice way. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23780 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_fckeditor/erp5_editor.css.xml | 34 +++++--- .../erp5_fckeditor/fckstyles.xml.xml | 87 +++++++++++++++++++ .../bootstrap/erp5_xhtml_style/bt/change_log | 4 + .../bootstrap/erp5_xhtml_style/bt/revision | 2 +- 4 files changed, 113 insertions(+), 14 deletions(-) create mode 100644 product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/fckstyles.xml.xml diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/erp5_editor.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/erp5_editor.css.xml index a3649d9686..b01b28b0c2 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/erp5_editor.css.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/erp5_editor.css.xml @@ -9,12 +9,6 @@ </pickle> <pickle> <dictionary> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>__name__</string> </key> <value> <string>erp5_editor.css</string> </value> @@ -266,12 +260,6 @@ </tuple> </value> </item> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> <item> <key> <string>_vars</string> </key> <value> @@ -1110,7 +1098,27 @@ span.page {\n \n div.page div {\n color: black;\n -} +}\n +\n +/* Css style used to display python code block in web pages */\n +.python_code{\n + background-color:#F3F5F7;\n + border:1pt solid #AEBDCC;\n + color:black;\n + margin:0.5em 0;\n + padding:0;\n + font-family:sans-serif,Arial,Helvetica;\n + font-size:11px;\n + font-weight:normal;\n + line-height:16px;\n + font-family:courier,monospace;\n + white-space:-moz-pre-wrap;\n + font-size:11px;\n + font-weight:normal;\n + line-height:16px;\n + text-align:left;\n +}\n + ]]></string> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/fckstyles.xml.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/fckstyles.xml.xml new file mode 100644 index 0000000000..ab5be81c35 --- /dev/null +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_fckeditor/fckstyles.xml.xml @@ -0,0 +1,87 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="File" module="OFS.Image"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_EtagSupport__etag</string> </key> + <value> <string>ts22245888.58</string> </value> + </item> + <item> + <key> <string>__name__</string> </key> + <value> <string>fckstyles.xml</string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/xml</string> </value> + </item> + <item> + <key> <string>data</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<?xml version="1.0" encoding="utf-8" ?>\n +<!--\n + * FCKeditor - The text editor for internet\n + * Copyright (C) 2003-2005 Frederico Caldeira Knabben\n + * \n + * Licensed under the terms of the GNU Lesser General Public License:\n + * http://www.opensource.org/licenses/lgpl-license.php\n + * \n + * For further information visit:\n + * http://www.fckeditor.net/\n + * \n + * File Name: fckstyles.xml\n + * This is the sample style definitions file. It makes the styles combo\n + * completely customizable.\n + * See FCKConfig.StylesXmlPath in the configuration file.\n + * \n + * File Authors:\n + * Frederico Caldeira Knabben (fredck@fckeditor.net)\n + *\n + \n +-->\n +<Styles xmlns:tal="http://xml.zope.org/namespaces/tal">\n + <Style name="Image on Left" element="img">\n + <Attribute name="class" value="img_left" />\n + </Style>\n + <Style name="Image on Right" element="img">\n + <Attribute name="class" value="img_right" />\n + </Style>\n + <Style name="Image on Top" element="img">\n + <Attribute name="class" value="img_top" />\n + </Style>\n + <Style name="Custom Ruler" element="hr">\n + <Attribute name="size" value="1" />\n + <Attribute name="color" value="#ff0000" />\n + </Style>\n + <Style name="Python code" element="div">\n + <Attribute name="class" value="python_code" />\n + </Style> \n +</Styles>\n +\n + + +]]></string> </value> + </item> + <item> + <key> <string>precondition</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>size</string> </key> + <value> <long>1331</long> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log index 52ccbd9ac7..bec96d0149 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log @@ -1,3 +1,7 @@ +2008-09-24 fabien +* Add file fckstyles.xml to have one more style : "Python code" wich improve python code blocks displaying. +* Modify erp5_editor.css file to display this new div class in a nice way. + 2008-09-15 yusei * Add i18n mark to access tab templates. diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index a9ba1259cf..09bd682e66 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -607 \ No newline at end of file +611 \ No newline at end of file -- 2.30.9