ASF Bugzilla – Attachment 23989 Details for
Bug 47416
Improvement of TinyMCE editor page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Go back into TinyMCE when a validation error occurs
tinymce.patch2 (text/plain), 2.62 KB, created by
Rainer Schöpf
on 2009-07-15 11:52:40 UTC
(
hide
)
Description:
Go back into TinyMCE when a validation error occurs
Filename:
MIME Type:
Creator:
Rainer Schöpf
Created:
2009-07-15 11:52:40 UTC
Size:
2.62 KB
patch
obsolete
>Index: src/modules/tinymce/sitemap.xmap >=================================================================== >--- src/modules/tinymce/sitemap.xmap (revision 794355) >+++ src/modules/tinymce/sitemap.xmap (working copy) >@@ -85,6 +85,7 @@ > <map:parameter name="usecaseName" value="{request-param:lenya.usecase}"/> > <map:parameter name="publicationId" value="{page-envelope:publication-id}"/> > <map:parameter name="locale" value="{request:locale}"/> >+ <map:parameter name="content" value="{request-param:tinymce.content}"/> > </map:transform> > </map:when> > <map:otherwise> >Index: src/modules/tinymce/xslt/page2edit.xsl >=================================================================== >--- src/modules/tinymce/xslt/page2edit.xsl (revision 794355) >+++ src/modules/tinymce/xslt/page2edit.xsl (working copy) >@@ -17,6 +17,7 @@ > <xsl:param name="usecaseName" select="'tinymce.ERROR'"/> > <xsl:param name="publicationId" select="'tinymce.ERROR'" /> > <xsl:param name="locale" select="'tinymce.ERROR'"/> >+<xsl:param name="content" select="''"/> > > > <!-- >@@ -191,7 +192,7 @@ > </xsl:for-each> > <!-- insert usecase messages, if any --> > <xsl:apply-templates select="/tinymceWrapper/xhtml:div[@class='lenyaInfoBox']"/> >- <xsl:if test="not(/tinymceWrapper/xhtml:div[@class = 'lenyaInfoBox']/*)"> >+<!-- <xsl:if test="not(/tinymceWrapper/xhtml:div[@class = 'lenyaInfoBox']/*)">--> > <!-- insert tinymce form hook --> > <xsl:comment>special code for the tinymce.edit usecase view</xsl:comment> > <xsl:text> >@@ -208,9 +209,18 @@ > <input type="hidden" name="tinymce.namespaces" value=""/> > <xsl:text> > </xsl:text> >+ <input i18n:attr="value" type="submit" name="submit" value="Save"/> >+ <xsl:text> >+ </xsl:text> >+ <input i18n:attr="value" type="submit" name="cancel" value="Cancel"/> >+ <xsl:text> >+ </xsl:text> > <textarea id="tinymce.content" name="tinymce.content" style="width:100%"> > <xsl:choose> > <!-- firefox bug workaround: prevent <textarea/> from collapsing if empty --> >+ <xsl:when test="$content!='' and /tinymceWrapper/xhtml:div[@class = 'lenyaInfoBox']/*"> >+ <xsl:value-of select="$content" /> >+ </xsl:when> > <xsl:when test=".//*"> > <xsl:apply-templates/> > </xsl:when> >@@ -228,7 +238,7 @@ > <xsl:text> > </xsl:text> > </form> >- </xsl:if> >+<!-- </xsl:if>--> > <xsl:text> > </xsl:text> > </xsl:copy>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47416
:
23867
|
23988
| 23989 |
23992