Results 1 to 10 of 10
Sep 9, 2011, 09:29 #1
- Join Date
- Jul 2008
- Somerset, England
- 0 Post(s)
- 0 Thread(s)
JS/Jquery soloution for adding html tags?
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.