roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r469256 - in /incubator/roller/trunk/web/roller-ui/authoring/editors: editor-xinha.jsp xinha/my_config.js
Date Mon, 30 Oct 2006 20:17:45 GMT
Author: snoopdave
Date: Mon Oct 30 12:17:44 2006
New Revision: 469256

URL: http://svn.apache.org/viewvc?view=rev&rev=469256
Log:
Fix for content/summary switcharoo on save (in Xinha)

Modified:
    incubator/roller/trunk/web/roller-ui/authoring/editors/editor-xinha.jsp
    incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js

Modified: incubator/roller/trunk/web/roller-ui/authoring/editors/editor-xinha.jsp
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/editor-xinha.jsp?view=diff&rev=469256&r1=469255&r2=469256
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/editor-xinha.jsp (original)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/editor-xinha.jsp Mon Oct 30 12:17:44
2006
@@ -21,8 +21,8 @@
 <script type="text/javascript">
 <!--
 function postWeblogEntry() {
-    document.weblogEntryFormEx.summary.value = xinha_editors.textarea1.getHTML().trim();
-    document.weblogEntryFormEx.text.value =    xinha_editors.textarea2.getHTML().trim();
+    document.weblogEntryFormEx.text.value =    xinha_editors.xe_content.getHTML().trim();
+    document.weblogEntryFormEx.summary.value = xinha_editors.xe_summary.getHTML().trim();
     document.weblogEntryFormEx.submit();
 }
 
@@ -39,11 +39,11 @@
 
 <%-- ===================================================================== --%>
 <b><fmt:message key="weblogEdit.content" /></b><br />
-<html:textarea styleId="textarea1" property="text" rows="25" cols="50" style="width: 100%"></html:textarea>
+<html:textarea styleId="xe_content" property="text" rows="25" cols="50" style="width:
100%"></html:textarea>
 
 <%-- ===================================================================== --%>
 <b><fmt:message key="weblogEdit.summary" /></b><br />
-<html:textarea styleId="textarea2" property="summary" rows="10" cols="50" style="width:
100%"></html:textarea>
+<html:textarea styleId="xe_summary" property="summary" rows="10" cols="50" style="width:
100%"></html:textarea>
 
 
  

Modified: incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js?view=diff&rev=469256&r1=469255&r2=469256
==============================================================================
--- incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js (original)
+++ incubator/roller/trunk/web/roller-ui/authoring/editors/xinha/my_config.js Mon Oct 30 12:17:44
2006
@@ -38,8 +38,8 @@
 
       xinha_editors = xinha_editors ? xinha_editors :
       [
-        'textarea1',
-        'textarea2'
+        'xe_content',
+        'xe_summary'
       ];
 
       /** STEP 3 ***************************************************************
@@ -75,8 +75,8 @@
        ************************************************************************/
 
        xinha_editors = HTMLArea.makeEditors(xinha_editors, xinha_config);
-       xinha_editors['textarea1'].registerPlugins(['FullScreen','CharacterMap']);
-       xinha_editors['textarea2'].registerPlugins(['FullScreen','CharacterMap']);
+       xinha_editors['xe_content'].registerPlugins(['FullScreen','CharacterMap']);
+       xinha_editors['xe_summary'].registerPlugins(['FullScreen','CharacterMap']);
 
 
       /** STEP 5 ***************************************************************
@@ -89,8 +89,8 @@
        *
        ************************************************************************/
        
-       xinha_editors.textarea1.config.height = '300px';
-       xinha_editors.textarea2.config.height = '50px';
+       xinha_editors.xe_content.config.height = '300px';
+       xinha_editors.xe_summary.config.height = '50px';
 
       /** STEP 6 ***************************************************************
        * Finally we "start" the editors, this turns the textareas into



Mime
View raw message