JavaCupiX wrote:
> Yes, this is what I was looking for, but how do I bring up the editor? For
> example in the case of a Wysiwyg edit.

You shouldn't... You should call $doc.display($name, "edit", $object)

> On 3/26/08, Guillaume Lerouge <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>>
>> Thanks to Sergui who pointed out the different states (edit, view,...) I
>>> made the following changes to my code so that you still be able to edit
>> a
>>> property with a custom display so here it is for the String property
>> type.
>>> I'm wondering if there is such a thing like $object.getEditor() but
>>> couldn't
>>> find it in the jdoc.
>>>
>>
>> There's 2 things available :
>>
>>    - #if( $context.action == 'edit') (you could replace edit with delete,
>>    addobject, inline ...)
>>    - #if( $!request.editor == 'wiki') (you could replace wiki with
>>    wysiwyg, object, class ...)
>>
>> Is this what you were lookig for ?
>>
>>
>> Guillaume
>>


-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to