Hi,
I want to write a js script that will wrap any text that is hıghighted in a textarea with the bbcode bold code or italics etc.
The same way that this forum post script must work.
(actually if I could find the script I could then modify it to suit my needs which would be easier )
Anyway - I am not sure how to start because how do I detect what characters are highlighted ?.
I have looked in the source code of this page for the js but can't find it :(
Can anyone help out.
Thanks
I want to write a js script that will wrap any text that is hıghighted in a textarea with the bbcode bold code or italics etc.
The same way that this forum post script must work.
(actually if I could find the script I could then modify it to suit my needs which would be easier )
Anyway - I am not sure how to start because how do I detect what characters are highlighted ?.
I have looked in the source code of this page for the js but can't find it :(
Can anyone help out.
Thanks
Comment