Ticket #823 (closed defect: fixed)
form.submit() fix
| Reported by: | gogo | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
From noxi in forum ( http://xinha.gogo.co.nz/punbb/viewtopic.php?id=758 )
if (!this._textArea.form.$XINHA_submit){
this._textArea.form.$XINHA_submit = this._textArea.form.submit;
this._textArea.form.submit =
function(){
for(var i=0;i < this.elements.length; i++){
var element = this.elements[i];
if (element.type != 'textarea') continue;
for (var a=0; a < __htmlareas.length;a++){
var editor = __htmlareas[a];
if (editor._textArea == element){
element.value = editor.outwardHtml(editor.getHTML());
}
}//for - each editor
}//for - each element
this.$XINHA_submit();
}//function
}//if
Change History
Note: See
TracTickets for help on using
tickets.
