ZF-11315: Zend_Dojo_View_Helper_Editor submit problem with Chrome
I create a Editor-Element in a form with the start value "Hello" Then I change this value on the page to "Hello world" and submit the form. Now the server should recive the value "Hello world", but if you try this in chrome I recive always the start value "Hello".
This problem apears only with the Chrome browser. The editor works fine with other browser.
Excample: I create the editor with the id 'comments' then you get the following html:
Here you can see that the input and the textarea tag have the same name "comments". If you change the name of the textarea from "comments" to "comments-Editor" like the id, then it works fine also in chrome.
In the function editor in Zend_Dojo_View_Helper_Editor you can see, that the textare is bild with the name of the id from the hidden field instead of the id from the textarea:
$html .= '' . $this->view->formTextarea($hiddenId, $value, $attribs) . '';
If you change it to
$html .= '' . $this->view->formTextarea($textareaId, $value, $attribs) . '';
it will work in chrome.