Hi,
I am trying to use in the InPlaceEditor to return a MultiLine text box. I can get a single line text box and the RTE control, but I need the ability to return non-HTML text with line breaks.
var ShippingNotes = new ej.inplaceeditor.InPlaceEditor({
mode: 'Inline',
type: 'Text',
value: '@Model.ShippingNotes',
actionSuccess: function (ActionEventArgs) {
orderInvoice.ShippingNotes = ActionEventArgs.value;
SaveOrderInvoice();
},
actionBegin: function (e) {
var value = ShippingNotes.element.querySelector('#TextNotes').value;
editObj.value = value;
e.value = value;
}
});
ShippingNotes.appendTo('#ShippingNotes');
<textarea id="TextNotes">
This gives me the multiline box (see attached), but:
1. Hitting the return key closes the control ( i need it to give a line break. I will submit the data by clicking on the tick )
Please advise?