Let's say I have a very long paragraph. When I click on a line, JS/jQuery will add an empty <span>
tag at the beginning of this specific line - right before the first word in this line.
f.e: This is my paragraph:
<p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has.
</p>
When I click the second line, a <span>
tag will be insert before the first word in the second line.
Any ideas how to do it?
`), I don't think you can do it. – Nicolas Le Thierry d'Ennequin Feb 22 '12 at 11:32