For anyone else that may have this issue in the future, all I've had to do to
get the display to work (I've not tested any further just yet) was to create
a new Element and Helper. If it's really this easy though, I'm wondering why
more Dojo form elements haven't been implemented (I realize it's just in
1.6RC2 and so maybe more will be coming with 1.6?).


Matthew Lurz wrote:
> 
> 
I've almost successfully added dijit.Editor to a form however am receiving
the following error:
> 
> 
[Exception... "'Error: Tried to register widget with id==content but that id
is already registered' when calling method:
[nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c
(NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: ""  data: no]

> 
> 
The addElement looks like this:
> 
> 

> $this->addElement(
>             'Message',
>             'content',
>             array(
>                 'label' => 'Message',
>                 'dojoType' => array('dijit.Editor')
>             )
>         );
> 

> 
> 
Message is a custom element that extends Zend_Dojo_Form_Element_Textarea.
The custom element merely sets up a custom decorator.
> 
> 
Then in my view I call moduleRequire('dijit.Editor'). Anyone have any idea
as to what I'm doing wrong here?
> 

-- 
View this message in context: 
http://www.nabble.com/dijit.Editor-tp19039554p19049277.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to