Log in

View Full Version : find what text is selected



Master_script_maker
01-26-2008, 11:23 PM
I am working an bbcode editor and i need a script like this forum's, where if you highlight text and click a button, text would appear around the highlighted text.
Thanks.

Master_script_maker
01-27-2008, 01:35 PM
anyone?

Master_script_maker
02-04-2008, 09:43 PM
anyone?

thetestingsite
02-04-2008, 09:51 PM
I'm not sure exactly, but I believe you can use createRange() and/or createTextRange().

Hope this helps.

Master_script_maker
02-06-2008, 10:53 PM
thanks, but i can't find any good tutorials, any suggestions?

thetestingsite
02-06-2008, 11:32 PM
I don't know about tutorials, but here is a pre-made editor:

http://corz.org/blog/inc/cbparser.php

Hope this helps.