_normalizeId($hiddenId); $textareaName = $this->_normalizeEditorName($hiddenName); $textareaId = $hiddenId . '-Editor'; $hiddenAttribs = array( 'id' => $hiddenId, 'name' => $hiddenName, 'value' => $value, 'type' => 'hidden', ); $attribs['id'] = $textareaId; $this->_createGetParentFormFunction(); $this->_createEditorOnSubmit($hiddenId, $textareaId); $html = '_htmlAttribs($hiddenAttribs) . $this->getClosingBracket() . $this->textarea($textareaName, $value, $params, $attribs); return $html; } /** * Normalize editor element name * * @param string $name * @return string */ protected function _normalizeEditorName($name) { if ('[]' == substr($name, -2)) { $name = substr($name, 0, strlen($name) - 2); $name .= '[Editor][]'; } else { $name .= '[Editor]'; } return $name; } /** * Create onSubmit binding for element * * @param string $hiddenId * @param string $editorId * @return void */ protected function _createEditorOnSubmit($hiddenId, $editorId) { $this->dojo->onLoadCaptureStart(); echo <<dojo->onLoadCaptureEnd(); } }