You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by rf...@apache.org on 2007/10/19 16:46:33 UTC

svn commit: r586486 - in /lenya/trunk/src/modules/fckeditor: resources/javascript/fckloader.js usecases/fckeditor.jx

Author: rfrovarp
Date: Fri Oct 19 07:46:33 2007
New Revision: 586486

URL: http://svn.apache.org/viewvc?rev=586486&view=rev
Log:
Load FCK from under the publication. Helps with customizing features of the editor.

Modified:
    lenya/trunk/src/modules/fckeditor/resources/javascript/fckloader.js
    lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx

Modified: lenya/trunk/src/modules/fckeditor/resources/javascript/fckloader.js
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/fckeditor/resources/javascript/fckloader.js?rev=586486&r1=586485&r2=586486&view=diff
==============================================================================
--- lenya/trunk/src/modules/fckeditor/resources/javascript/fckloader.js (original)
+++ lenya/trunk/src/modules/fckeditor/resources/javascript/fckloader.js Fri Oct 19 07:46:33 2007
@@ -18,7 +18,7 @@
 function fckloader(requesturi, contextPath)
 {
   var oFCKeditor = new FCKeditor( 'content' ) ;
-  oFCKeditor.BasePath	= '/modules/fckeditor/fckeditor/' ;
+  oFCKeditor.BasePath	= '/' + contextPath + '/modules/fckeditor/fckeditor/' ;
   oFCKeditor.Width="800";
   oFCKeditor.Height="700";
   oFCKeditor.Config[ "FullPage" ] = true ;

Modified: lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx?rev=586486&r1=586485&r2=586486&view=diff
==============================================================================
--- lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx (original)
+++ lenya/trunk/src/modules/fckeditor/usecases/fckeditor.jx Fri Oct 19 07:46:33 2007
@@ -28,10 +28,10 @@
   <jx:set var="steps" value="${pathInfo.split('/')}"/>
   <jx:set var="pubId" value="${java.util.Arrays.asList(steps).get(1)}"/>
  
-  <script type="text/javascript" src="/modules/fckeditor/fckeditor/fckeditor.js">&#160;</script>
-  <script type="text/javascript" src="/modules/fckeditor/javascript/fckloader.js">&#160;</script>
-  <script type="text/javascript" src="/modules/editors/javascript/disablebackspace.js">&#160;</script>
-  <script type="text/javascript" src="/modules/editors/javascript/org.apache.lenya.editors.js">&#160;</script> 
+  <script type="text/javascript" src="/${pubId}/modules/fckeditor/fckeditor/fckeditor.js">&#160;</script>
+  <script type="text/javascript" src="/${pubId}/modules/fckeditor/javascript/fckloader.js">&#160;</script>
+  <script type="text/javascript" src="/${pubId}/modules/editors/javascript/disablebackspace.js">&#160;</script>
+  <script type="text/javascript" src="/${pubId}/modules/editors/javascript/org.apache.lenya.editors.js">&#160;</script> 
   <script type="text/javascript">
     function loadfckloader() {
       fckloader('${usecase.getParameter('requesturi')}', '${pubId}');



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org