-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
Un patch qui peut t'intéresser
Index: workspaces/cms/resources/HTMLeditor/js/htmlarea.js =================================================================== RCS file: /cvs/produits/Ametys/AnyContent_2.9/workspaces/cms/resources/HTMLeditor/js/htmlarea.js,v retrieving revision 1.5 diff -u -r1.5 htmlarea.js - workspaces/cms/resources/HTMLeditor/js/htmlarea.js 12 Aug 2008 15:10:20 -0000 1.5 +++ workspaces/cms/resources/HTMLeditor/js/htmlarea.js 13 Aug 2008 14:31:33 -0000 @@ -757,6 +757,7 @@ html += '<base href="' + editor.config.baseURL + '" />'; html += "<style>" + editor.config.pageStyle + " html,body { border: 0px; }</style>\n"; + html += editor.config.conditionalPageStyle + "\n"; html += "</head>\n"; html += "<body class='" + editor.config.className + "'>\n"; html += (editor._textArea.value == "" || editor._textArea.value == "<p></p>") ? "<p> </p>" : editor._textArea.value; Index: workspaces/cms/stylesheets/HTMLeditor/HTMLeditor.xsl =================================================================== RCS file: /cvs/produits/Ametys/AnyContent_2.9/workspaces/cms/stylesheets/HTMLeditor/HTMLeditor.xsl,v retrieving revision 1.4 diff -u -r1.4 HTMLeditor.xsl - workspaces/cms/stylesheets/HTMLeditor/HTMLeditor.xsl 17 Jun 2008 15:06:38 -0000 1.4 +++ workspaces/cms/stylesheets/HTMLeditor/HTMLeditor.xsl 13 Aug 2008 14:31:33 -0000 @@ -173,6 +173,11 @@ <xsl:for-each select="$area/head/style"> editor.config.pageStyle += "<xsl:value-of select="normalize-space(.)"/>"; </xsl:for-each> + + editor.config.conditionalPageStyle = ""; + <xsl:for-each select="$area/head/comment()"> + editor.config.conditionalPageStyle += "<xsl:comment><xsl:value-of select="normalize-space(.)"/></xsl:comment>"; + </xsl:for-each> // GO editor.generate();