Replace edit input for text fields.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Fix display of text after edit.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Fix unit test.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Merge pull request #1193 from Tithugues/b4416

Fix #4416: new lines are removed when editing