Projects ⇒ Bugs ⇒ #637: Caret position not saved in textarea's for bbcode (fix included) ⇒ CPG Dragonfly™ CMS
Bug #637 Caret position not saved in textarea's for bbcode (fix included)
Project: Dragonfly 9.0.3 -> 9.3 Category: Output Control
Submitted: Saturday, October 01, 2005 (20:18:39) Modified: Monday, October 03, 2005 (02:16:32)
Status: Closed Assigned to:
PHP Version: Irrelevant HTTPD Server: Apache 1.3

View/Vote Add Comment

by: Biggles
The textarea input fields are not saving the cursor position when using bbcode resulting in the bbcode getting appended to the end of the textarea instead of where the cursor is when using Internet Explorer. Need to add the following to the textarea attributes when bbcode is enabled:
onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"

in the following files (
admin/modules/blocks.php - line 217, 290
admin/modules/messages.php - line 74, 150
modules/Contact/index.php - line 51
modules/News/admin/ - line 55
modules/News/admin/ - line 374
modules/News/submit.php - line 101, 106
modules/Tell_a_Friend/index.php - line 132
modules/Your_Account/index.php - line 154
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous


Support for DragonflyCMS in a other languages: