bluetoother Posted November 5, 2007 Share Posted November 5, 2007 iam working on simple word processing editor to add it to my web sitei want to use textarea so users can write their text and buttons that run javascript functions to add something like this [b] text [/b] so users can format the text .i know this is a BB code but i cannot find a free and easy bb editor to use it in my web siteso i decided to build my own editori need to know what functions let me handle the selected ( highlighted ) text by mouse in the textarea so i can know it's position and add for example in that position before the selected text Link to comment Share on other sites More sharing options...
jesh Posted November 5, 2007 Share Posted November 5, 2007 If you want to write this yourself, you might benefit from reading this article:http://www.quirksmode.org/dom/range_intro.html Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.