Re: FCKEditor & Textarea problem
Richard Frovarp <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Sorry I wasn't able to get to it. Things have been busy around here.
Thank you for your patch. I've applied it to trunk.
Richard
Oleg Barmin wrote:
> Hi,
>
> I've aplied this fix to FCKEditor.
>
> 1) Create escape.xsl file in FCKEditor xslt directory:
> <?xml version="1.0" encoding="UTF-8" ?>
>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:nav="http://apache.org/cocoon/lenya/navigation/1.0"
> xmlns:xhtml="http://www.w3.org/1999/xhtml">
> <xsl:template match="xhtml:textarea" name="rainer">
> <textarea
> <xsl:for-each select="@*">
> <xsl:value-of select="name()"/>="<xsl:value-of select="."/>"
> </xsl:for-each>
> ></textarea>
> </xsl:template>
> <xsl:template match="@*|node()" name="identity">
> <xsl:copy>
> <xsl:apply-templates select="@*|node()"/>
> </xsl:copy>
> </xsl:template>
> </xsl:stylesheet>
>
> 2) Apply this transformation:
> <map:transform src="fallback://lenya/modules/fckeditor/xslt/escape.xsl" />
> to content pattern in fckeditor sitemap:
> <map:match pattern="content">
> <map:generate src="lenya-document:{page-envelope:document-uuid},lang={page-envelope:document-language}"/>
> <map:transform type="uuid2url">
> <map:parameter name="urls" value="absolute"/>
> </map:transform>
> <map:transform src="fallback://lenya/modules/fckeditor/xslt/escape.xsl" />
> <map:serialize type="xml-get"/>
> </map:match>
>
> Best regards,
> Oleg Barmin.
> ________________________________________
> From: Richard Frovarp [[email protected]]
> Sent: Wednesday, October 14, 2009 12:21 PM
> To: [email protected]
> Subject: Re: FCKEditor & Textarea problem
>
> Rainer Schöpf wrote:
>
>> On Wed, 14 Oct 2009, Richard Frovarp wrote:
>>
>> > Oleg Barmin wrote:
>> > > Hi,
>> > > FCKEditor using a textarea as a container for
>> > > placing page content there. So if page contains a textarea itself it is
>> > > opened in wrong way in FCKEditor. But there is no error whe we adding new
>> > > textarea to the page. Are there any ideas how to fix the problem with editing
>> > > page and textarea? Maybe some other conainer like iframe can be used instead
>> > > of textarea?
>> >
>> > Does anyone know if any of the editors handle this well?
>>
>> TinyMCE had the same problem; I suspect a similar fix can be applied to
>> FCKEditor.
>>
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=46367
>>
>> Rainer
>>
>>
>>
>
> Thank you Rainer. I do suspect that a fix very similar to that one can
> be used due to the very similar nature that TinyMCE and FCK work. I'll
> try to find time this week to test and apply a fix.
>
> Richard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>