Richard Frovarp wrote:
>>> Maybe we can find a way to use the same code for BXE and FCKeditor,
>>> maybe by extracting some parts of the file to a separate JX template?
>>>
>>> -- Andreas
>>>
>>
>> Yeah, this should be done. All three are identical except for three
>> lines that contain the editor's name. I think I see how it can be done
>> relatively easily. Is there a way to get the usecase module inside of
>> a jx template? I could do a substring on usecase.getName. Just looking
>> to see if there is a shortcut and I don't see anything grepping
>> through the code or looking at the Usecase interface. Or maybe that is
>> something to be added to the Usecase interface?
>>
>> Richard
>
>I've figured out how to do this. The question is do we want
>usecase.getModule? Otherwise what is needed is this:
>
>usecase.getName().substring(0,usecase.getName().indexOf('.'))
Why don't we just pass a parameter to the usecase?
<component-instance name="bxe.edit">
...
<parameter name="editor" value="bxe"/>
...
</component-instance>
<jx:out value="${usecase.getParameter('editor')}"/>
-- Andreas
--
View this message in context:
http://www.nabble.com/Re%3A-svn-commit%3A-r551554---in--lenya-trunk-src-modules%3A---fckeditor-usecases-insertAsset.jx-tinymce-usecases-insertAsset.jx-tf3994822.html#a11356616
Sent from the Lenya - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]