Also see: Pita/etherpad-lite#768
When a <ul>-list is present in the HTML fed into setHTML, all content after that list is also marked as part of the list in the browser (at least in Google Chrome & Firefox), while the server side correctly retains the content fed in setHTML. This makes the editting in the browser to behave inconsistently, as the browser representation is different from the server side content: The cursor will shift, wrong lines will be removed when using backspace, and there is no way to restore the pad to a consistent state.
One can reproduce this problem by using this link:
https://localhost:9001/api/1/setHTML?apikey=secret&padID=test&html=%3Cdiv%3E%3Cul%3E%3Cli%3Eitem%201%3C/li%3E%3C/ul%3E%3Cbr/%3Efurther%3Cbr/%3Econtent%3Cbr/%3E%3Cbr/%3Ealso%20indented%20%3C/div%3E
Can someone look into this issue? One really can't edit the pad sensibly anymore if a list was present when the content was imported.
Also see: Pita/etherpad-lite#768
When a
<ul>-list is present in the HTML fed into setHTML, all content after that list is also marked as part of the list in the browser (at least in Google Chrome & Firefox), while the server side correctly retains the content fed in setHTML. This makes the editting in the browser to behave inconsistently, as the browser representation is different from the server side content: The cursor will shift, wrong lines will be removed when using backspace, and there is no way to restore the pad to a consistent state.One can reproduce this problem by using this link:
https://localhost:9001/api/1/setHTML?apikey=secret&padID=test&html=%3Cdiv%3E%3Cul%3E%3Cli%3Eitem%201%3C/li%3E%3C/ul%3E%3Cbr/%3Efurther%3Cbr/%3Econtent%3Cbr/%3E%3Cbr/%3Ealso%20indented%20%3C/div%3E
Can someone look into this issue? One really can't edit the pad sensibly anymore if a list was present when the content was imported.