It is necessary to make the user copy the text from MSWord and paste it into the input field.
Wherein:
After insertion (Ctrl + V), each paragraph was automatically framed in
<li></li>
(it seemed to cope with this, but it is not clear why an empty<li></li>
is displayed at the end of the inserted text).The user could edit the entered text directly in the same field (now it is not very correct).
The user could insert text from MSWord (at the moment it can be done, but only if we insert text instead of the existing one, and not in addition to it).
That's what stuck:
$('#input').bind('input', function () { $(this).val('<li>' + $(this).val().replace(/\r?\n/g, '</li>\n<li>') + '</li>'); });
I tried a lot, it did not help.