[Typo3] bg-htmlarea frontend-rte -> more then on textarea in one form - solution
Uwe Graber
u.graber at gmx.de
Thu Sep 8 12:41:11 CEST 2005
may someone needs this also.
greetz
uwe
from:
http://www.htmlarea.com/forum/htmlArea_3_(beta)_C4/htmlArea_v3.0_-_Beta_Release_F14/How_to_configure_and_run_HTMLArea_P24511/gforum.cgi?post=17344;search_string=save%20htmlarea%20more%20textarea;guest=11900164&t=search_engine#17344
change in htmlarea.js
if (textarea.form) {
// we have a form, on submit get the HTMLArea content and
// update original textarea.
textarea.form.onsubmit = function() {
editor._textArea.value = editor.getHTML();
};
}
Replace with
/*if (textarea.form) {
// we have a form, on submit get the HTMLArea content and
// update original textarea.
textarea.form.onsubmit = function() {
editor._textArea.value = editor.getHTML();
};
}*/
// retrieve the HTML on submit
HTMLArea._addEvent(textarea.form, "submit", function (event) {
editor._formSubmit(HTMLArea.is_ie ? window.event : event);
});
And Insert this function near about line 686
// gets called before the form is submitted
HTMLArea.prototype._formSubmit = function(ev) {
// retrieve the HTML
this._textArea.value = this.getHTML();
};
More information about the TYPO3-english
mailing list