My apologies to Matthew for implying that there are many other Dojo form
elements that weren't implemented in 1.6RC2. This is clearly not the case as
he has pointed out.


Matthew Weier O'Phinney-3 wrote:
> 
> -- Matthew Lurz <[EMAIL PROTECTED]> wrote
> (on Tuesday, 19 August 2008, 07:02 AM -0700):
>> 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?).
> 
> Actually, Editor is one of a _very_ small number of dijits that was not
> included in 1.6.0 (the only other one I'm aware of is SimpleTextarea).
> The main reason Editor has not been included so far is that getting it
> to work with submitted forms is non-trivial, particularly when working
> with Zend_Form. That said, I've figured it out, and will be posting a
> solution via my blog that you can use until we officially add it (1.6.1
> or later). Look for a posting on http://weierophinney.net/matthew/ in
> the coming week.
> 
> 
>>     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: Re: dijit.Editor
>> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect       | [EMAIL PROTECTED]
> Zend Framework           | http://framework.zend.com/
> 
> 

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

Reply via email to