When e.g. inserting the following WikiText using the EditFormPreloadText hook ...
* ABC * DEF
... and VisualEditor starts in WikiText mode (e.g. because visual mode is disabled for target namespace), VisualEditor shows ...
<ul id="mwAQ"><li id="mwAg"> ABC</li> <li id="mwAw"> DEF</li></ul>
... in the edit area. This is due to a missing check for paction parameter in ApiVisualEditor.php
There is a patch for REL1_31 available: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/VisualEditor/+/466665/
If accepted, this should probably be cherry-picked to master and REL1_32.