Hi,
I have an IE7 bug when testing the demos in Control.Textarea.
If the textarea does not have focus, then the string replacement will occur wherever focus currently is.
I fixed this by explicitly giving focus to the textarea before the selection is replaced, e.g. I changed this:
if(typeof(document.selection) != 'undefined'){
to this...
if(typeof(document.selection) != 'undefined'){ this.textarea.focus();
in control.textarea.js line 65.
One feature I'd love to see in this control is for the cursor to jump to the position just before the second argument of wrapSelection.
Great job.
Kelvin.
Posted May 12th, 2007 at 5:07pm by releasedj
Hi,
I have an IE7 bug when testing the demos in Control.Textarea.
If the textarea does not have focus, then the string replacement will occur wherever focus currently is.
I fixed this by explicitly giving focus to the textarea before the selection is replaced, e.g. I changed this:
to this...
in control.textarea.js line 65.
One feature I'd love to see in this control is for the cursor to jump to the position just before the second argument of wrapSelection.
Great job.
Kelvin.
Posted May 12th, 2007 at 5:07pm by releasedj