From: Tim Hannigan <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: Evaluation of Lenya
Date: Tue, 25 Apr 2006 08:58:02 -0400

Rudi - You're right, there is a problem with ampersand entities in aggregate.xsl - they serve a purpose in XSLT and the processor will get confused if you use them in an HTML like fashion.. this is why I created utils.js with a function to decode them.

Your solution looks pretty clean, I just want to note at typo -"contectprefix" should actually say "contextprefix".

Jim Douglas - can you list what files/directories you have in your usecases/tiny_mce directory?


-Tim



On 25-Apr-06, at 2:42 AM, MOSSELMANS Rudi (OPOCE) wrote:

I found there to be a problem with ampersand entities in  aggregate.xsl.

To solve that problem:
- copy utils.js into usecases/tiny_mce/jscripts/tiny_mce
- inserta link to utils.js into usecase/tiny_mce/xsl/aggregate.xsl:
<script language="javascript" type="text/javascript" src"{$contectprefix}tiny_mce/utils.js"> </script>

I hope this helps,

Rudi

-----Original Message-----
From: Jim Douglas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 25, 2006 1:34 AM
To: [email protected]
Subject: Re: Evaluation of Lenya

From: "Jim Douglas" <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
CC: [EMAIL PROTECTED]
Subject: Re: Evaluation of Lenya
Date: Mon, 24 Apr 2006 19:57:07 +0000

I took your advice and tried to integrate TinyMCE into Lenya for my Leny Evaluation demo. I am having a problem you may have encountered..is so can
you let me know haw you solved it.


I did the following in
lenya/webapp/lenya/pubs/library/config/menus/generic.xsp
<item wf:event="edit" uc:usecase="tiny_mce" uc:step="open"
href="?"><i18n:text>Edit with TinyMCE</i18n:text></item>
and getting this error:

" The requested document '/index.html' with document-id '/index' does
not exist."

the url is:
authoring/index.html? &lenya.event=edit&lenya.usecase=tiny_mce&lenya.step=open


Thanks,
Jim



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


I went into the

        <map:match type="step" pattern="open">

            <!-- Check for TinyMCe Editor -->

            <map:act type="resource-exists"
src="jscripts/tiny_mce/tiny_mce.js">


to this,

        <map:match type="step" pattern="open">

            <!-- Check for TinyMCe Editor -->

            <map:act type="resource-exists"
src="tinymce/jscripts/tiny_mce/tiny_mce.js">


...and now it takes me to the page to edit when I click TinyMCE  from the
Lenya menu. The problem I have now is that I have no TinyMCE controls and
only a text area to change text and a "Cance/"Exit" button?  Damn.

A little help anybody?

Jim



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This is what I lknow have in aggregate.xsl


<script language="javascript" type="text/javascript" src"{$contextprefix}tiny_mce/utils.js">&#160;</script>

<script language="javascript" type="text/javascript" src="{$contextprefix}tiny_mce/tiny_mce.js">&#160;</script>

<script language="javascript" type="text/javascript">

var imageList ="<xsl:value-of select="$docname" />.html?&amp;lenya.event=edit&amp;lenya.usecase=tiny_mce&amp;lenya.step=imageList";

var assetList ="<xsl:value-of select="$docname" />.html?&amp;lenya.event=edit&amp;lenya.usecase=tiny_mce&amp;lenya.step=assetList";

var editor_content_css = "<xsl:value-of select="$editor_content_css" />";

var focusWindow;



Jim Douglas - can you list what files/directories you have in your usecases/tiny_mce directory?
resources dir
tinymce dir
xslt dir
usecase-tiny_mce.xmap


What should contextprefix be ({$contextprefix}tiny_mce/utils.js),
If this is the directory path to utils.js and tiny_mce.js? /usr/opt/tomcat/webapps/lenya/lenya/usecases/tiny_mce/tinymce/jscripts/tiny_mce

Thanks,
Jim



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to