Hi,


I've search in documentation how to preserve line breaks of textarea when submitting form in ajax.
I've found nothing so i've trace code to understand how it work.


I've found where is the problem. In the createSubmissionForm method's of formpanel.


All of fields as create as input type text. So it's normal that line breaks of textarea are losed.


To solved the problem i've override the method like this :

Replace :

Code:
if (form.nodeType === 1) {
    form = form.cloneNode(false);

    for (name in values) {
        input = document.createElement('input');
        input.setAttribute('type', 'text');
        input.setAttribute('name', name);
        input.setAttribute('value', values[name]);
        form.appendChild(input);
    }
}
By :

Code:
if (form.nodeType === 1) {
    form = form.cloneNode(false);


    for (name in values) {
        field = fields[name];
        if (field.xtype == 'textareafield') {
            input = document.createElement('textarea');
            input.name = name;
            input.value = values[name];
        }
        else {
           input = document.createElement('input');
           input.setAttribute('type', 'text'); 
           input.setAttribute('name', name);
           input.setAttribute('value', values[name]);
        }
        form.appendChild(input);
    }
}
}
}