|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
FCKEditor & Textarea problemHi,
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? HTML code of the page follows: <html> <head> <title>New XHTML document</title> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> <link href="/ksapoc/authoring/css/page.css" rel="stylesheet" type="text/css" /> <meta content="text/html;charset=utf-8" http-equiv="Content-Type" /> </head> <body> <h1>Introduction</h1> <p>bla-bla-bla/p> <form action="" method="post"> <div> <input name="lenya.usecase" type="hidden" value="ereport.send" />Subject:<br /> <input name="subj" size="79" type="text" /> <br /> Text:<br /> <textarea cols="60" name="text" rows="10"></textarea> <br /> <input type="submit" value="Send" /> </div> </form> <br /> <br /> <p> </p> <p> </p> </body> </html> --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: FCKEditor & Textarea problemOleg 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? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: FCKEditor & Textarea problem>
> Does anyone know if any of the editors handle this well? > We have no issues when editing forms including textarea; Firedocs. Best Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: FCKEditor & Textarea problemOn 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: FCKEditor & Textarea problemRainer 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: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
RE: FCKEditor & Textarea problemHi,
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 [rfrovarp@...] Sent: Wednesday, October 14, 2009 12:21 PM To: user@... 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: user-unsubscribe@... For additional commands, e-mail: user-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: FCKEditor & Textarea problemSorry 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 [rfrovarp@...] > Sent: Wednesday, October 14, 2009 12:21 PM > To: user@... > 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: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@... > For additional commands, e-mail: user-help@... > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free embeddable forum powered by Nabble | Forum Help |