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"> </script>
- <script type="text/javascript" src="/modules/fckeditor/javascript/fckloader.js"> </script>
- <script type="text/javascript" src="/modules/editors/javascript/disablebackspace.js"> </script>
- <script type="text/javascript" src="/modules/editors/javascript/org.apache.lenya.editors.js"> </script>
+ <script type="text/javascript" src="/${pubId}/modules/fckeditor/fckeditor/fckeditor.js"> </script>
+ <script type="text/javascript" src="/${pubId}/modules/fckeditor/javascript/fckloader.js"> </script>
+ <script type="text/javascript" src="/${pubId}/modules/editors/javascript/disablebackspace.js"> </script>
+ <script type="text/javascript" src="/${pubId}/modules/editors/javascript/org.apache.lenya.editors.js"> </script>
<script type="text/javascript">
function loadfckloader() {
fckloader('${usecase.getParameter('requesturi')}', '${pubId}');
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.