I have a content-editable div in a html page and i have loaded it to UWP WebView. When i edit the content say i enter "Apple" and press enter new line(\n) is getting added but in the edge browser a new line div>br>/div> gets added. Why its behaving differently. I am facing problems in doing text formatting in the webview because of this problem. The problem is when i enter few lines and then when i try add a new list(ordered/unordered) all the lines above are considered as list(as they are considered as same div). Attached screen shots for reference. Please help me with this issue.
Asked
Active
Viewed 125 times
0

Saravana Kumar
- 341
- 3
- 14
1 Answers
1
Each browser handles enters in editable <div>
differently so if you want to have control over it, try using the solution shown here.

Martin Zikmund
- 38,440
- 7
- 70
- 91
tag after i press enter, i want to encapsulate the line content inside a div. For example im typing "Hello" and the press enter the content has to be encapsulated in