weierophinney wrote:
>
> I already have this on my short-list of issues to look at for next
> week's bug hunt days -- but thanks for bumping it.
>
> (And yes, there's at least one issue in the tracker regarding it
> already.)
>
> --
> Matthew Weier O'Phinney
> Project Lead | [email protected]
> Zend Framework | http://framework.zend.com/
>
>
The original file I posted had a few issues that I recently resolved. Below
should have everything needed for anyone wanting a quick fix while waiting
for Matthew's official update. Note: The class now extends
Zend_Dojo_View_Helper_Dijit instead of Zend_Dojo_View_Helper_Textarea.
/**
* dijit.Editor
*
* @param string $id
* @param string $value
* @param array $params
* @param array $attribs
* @return string
*/
public function editor($id, $value = null, $params = array(), $attribs =
array())
{
$hiddenName = $id;
if (array_key_exists('id', $attribs)) {
$hiddenId = $attribs['id'];
} else {
$hiddenId = $hiddenName;
}
$hiddenId = $this->_normalizeId($hiddenId);
$dijitName = $this->_normalizeEditorName($hiddenName);
$divId = $hiddenId . '-Editor';
$hiddenAttribs = array(
'id' => $hiddenId,
'name' => $hiddenName,
'value' => $value,
'type' => 'hidden',
);
$attribs['id'] = $divId;
$this->_createGetParentFormFunction();
$this->_createEditorOnSubmit($hiddenId, $divId);
$html = '<input' . $this->_htmlAttribs($hiddenAttribs) .
$this->getClosingBracket()
. $this->_createLayoutContainer($divId, $value, $params,
$attribs);
return $html;
}
--
View this message in context:
http://old.nabble.com/Patch%3A-Zend_Dojo_View_Helper_Editor-tp26339526p26339868.html
Sent from the Zend Framework mailing list archive at Nabble.com.