How would I split the node / element in position (selection).
Example: I have this markup:
<p>This is <a href="">a te|st</a>, you like?</p>
(this pipe represents position / choice)
I want to convert it to:
<p>This is <a href="">a te</a></p>|<p><a href="">st</a>, you like?</p>
Maintaining a Choice.
Any ideas?
I and using the Rangy library as well as jQuery, but you can use raw JS if necessary.
source share