Hi all,

I am putting the finishing touches to a custom written (pHp) article editor to allow users to publish content on a website.

I have basically finished the project, and I am putting the finishing touches in with jquery widgets, such as a word counter. I would also like people to be able to highlight a section of text, then have some custom tags wrap the text (much like on this forum when you highlight a word in the message box and hit the wrap button).

I would like my own custom tags to be used, such as <span class='someclass'>some entered text</span> rather than predefined ones.

Would someone be kind enought to recommend a lightweight soloution to this problem?


Kind regards and thanks.