Based on the information provided by adzenith about modifying the cursor location using .sel(), I’ve made another plugin that I find myself using all the time, wrap each in tag. So if you have the following text:
this
is
a
test
And select all the lines and run the function you’ll get:
<li|>this</li|>
<li|>is</li|>
<li|>a</li|>
<li|>test</li|>
with all the
Again, if this is duplicating another plugin/built-in function please let me know! I’d always rather use original functions, than plugins!
You can get it here: