Use document.execCommand ('InsertUnorderedList') to format the outer tag

use document.execCommand ("InsertUnorderedList") to set an unordered list for a paragraph of text, but the outer label is removed.
this will cause the styles on these tags to be gone. Is there any way to add the li tag on the outermost layer instead of deleting the original tag?

original structure:

clipboard.png

document.execCommand( "InsertUnorderedList" ):

clipboard.png

Jun.18,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be07db-314de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be07db-314de.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?