[ http://issues.apache.org/jira/browse/COCOON-1437?page=comments#action_12439413 ] Jeroen Reijn commented on COCOON-1437: --------------------------------------
I've fixed this before inside our cocoon based CMS. I will have to see if it still applies for cocoon-2.1.10. I can submit a patch otherwise. > Htmlarea lost contents > ---------------------- > > Key: COCOON-1437 > URL: http://issues.apache.org/jira/browse/COCOON-1437 > Project: Cocoon > Issue Type: Bug > Components: Blocks: Forms > Affects Versions: 2.2-dev (Current SVN) > Environment: Operating System: All > Platform: All > Reporter: Gioni Gennai > Assigned To: Cocoon Developers Team > > In my project I use htmlarea with cform. I customize the html area calling a > js > function with onload event > <body onload="initHtmlArea('descrizione'); return true;"> > function initHtmlArea(elementId) { > // inititalize editor > editor = new HTMLArea(elementId); > // retrive the config object > var config = editor.config; > // do custom configuration > config.toolbar = [ > [ > "bold", "italic", "underline", "separator", > "undo", "redo", "separator", > "justifyleft", "justifycenter", "justifyright", "separator", > "insertorderedlist", "insertunorderedlist", "outdent", > "indent" > ] > ]; HTMLArea.replace(elementId, config); > } > Where descrizione is the htmlarea's id > <ft:widget id="descrizione"> > <fi:styling type="textarea" rows="20" style="width:100%"/> > </ft:widget> > All seems to work, I have my htmlarea show in the form. > The problem is that in the form I have a selection list, with the > <fi:styling > submit-on-change="true"/>, that I use to populate another selection list on > the > form. When i change the selection, in the first selection list, the second is > populate as I expect, but the text present in the htmlarea is lost. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
