Author: andreas
Date: Wed May 6 16:18:48 2009
New Revision: 772347
URL: http://svn.apache.org/viewvc?rev=772347&view=rev
Log:
Adding template to convert textareas to be handled by TinyMCE. Fixes bug 46367. Thanks to Rainer Schoepf for the patch.
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
Modified: lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl?rev=772347&r1=772346&r2=772347&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/tinymce/xslt/page2edit.xsl Wed May 6 16:18:48 2009
@@ -246,6 +246,21 @@
</xsl:copy>
</xsl:template>
+
+ <xsl:template match="xhtml:textarea">
+ <xsl:text><textarea</xsl:text>
+ <xsl:for-each select="@*">
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="name()"/>
+ <xsl:text>="</xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text>"</xsl:text>
+ </xsl:for-each>
+ <xsl:text>></xsl:text>
+ <xsl:value-of select="."/>
+ <xsl:text></textarea></xsl:text>
+ </xsl:template>
+
<xsl:template match="@*|node()" name="identity">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.