Problem with adding tags into INPUT TEXTAREA
Posted 17 May 2006 - 09:45 AM
Only one problem to which I didn't succeed to find decision is how to input the tags exactly in that line where cursor is flashing and not in the end of text..
I hope somebody knows decision!
Thanks in advance and bye for now..
Posted 18 May 2006 - 04:04 AM
just posted that one:
[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=93345\" target=\"_blank\"]cursor position in a textarea[/a],,
The script works with both IE & FF,,
just,... with IE, the script needs to add a "no-sense key" to find the correct cursor position,... & then, once the bbcode is added, it removes the "no-sense key",... (tested with IE, "ctrl+Z" displays the 'no-sense key',,, erff,....)
with firefox, it was easier (as often,,, ), using the 'setSelectionRange' method,
Hoping it helps,,
1st intention: understand the problem
2nd intention: try to solve it
3rd intention: try to understand how to solve it
Posted 18 May 2006 - 05:09 PM
that's exactly what I need.. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]
Posted 19 May 2006 - 01:51 PM
Posted 25 May 2006 - 07:37 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users