jd2007 Posted July 26, 2007 Share Posted July 26, 2007 for e.g. i want to use in a textarea. its something like this forum. when i type a text, i highlight it and i click the B button, it turns bold...i want a same concept like that...give me an idea/hint... Quote Link to comment Share on other sites More sharing options...
lighton Posted July 29, 2007 Share Posted July 29, 2007 perhaps you can use an event listener to record the movement of the mouse to find out where to insert the [b/][//b] for example on mousedown to indicate the begining of the string and onmouseup where the end of the string is, i have no idea if this would work or whether recording this kind of the data would be useful in a textbox but its a hint? I suck at javascript Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 29, 2007 Share Posted July 29, 2007 Do you mean sometging like http://tinymce.moxiecode.com/ Quote Link to comment Share on other sites More sharing options...
lighton Posted July 29, 2007 Share Posted July 29, 2007 just found that it shoudl help http://www.phpfreaks.com/forums/index.php/topic,144579.0.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.