kenxran / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

New lines should show in the HTML #106

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have a value with a line break
2. When a user edits a value they get <br>'s through their code
3. Alternativly, they enter in data with line breaks and it doesn't show that 
way in the table.

What is the expected output? What do you see instead?
I would expect, when editing an entry the <br/>s get changed to \n. Likewise, 
when the data is displayed, \n's be changed to <br/>

What version of the product are you using? On what operating system?
1.3, windows and linux.

Original issue reported on code.google.com by huffy7412 on 26 Mar 2012 at 1:22

GoogleCodeExporter commented 9 years ago
I've discovered DataTables' fnRender function.
This works as far as display is concerned - but when you go to edit a field it 
shows what is 'rendered' rather than the original data.

Is there a way to make this get the original data instead of what is rendered? 
Or perhaps even a similar command that allows you to pre-process the value 
before it is put into the field?

Original comment by huffy7412 on 26 Mar 2012 at 1:49