https://bugzilla.wikimedia.org/show_bug.cgi?id=42073

--- Comment #7 from kipod <fur.hew...@gmail.com> 2012-11-14 19:27:03 UTC ---
(In reply to comment #5)
> $textarea.val($textarea.val().replace(regex));

it seems that whoever wrote it chose to limit the interaction with $textarea to
textSelection, but all it means is that this should be

$textara.textSelection( 'setContent', $textara.textSelection( 'getContent'
).replace( regex ));

or simply
$textara.textSelection( 'setContent', textRemainder.replace( regex ));

peace.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to