Opened 18 years ago
Closed 17 years ago
#802 closed Bug (fixed)
Replace bug in editor
Reported by: | anonymous | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | SF | Cc: |
Description (last modified by )
when using the replace function there is a strange fenominon.
when you enter a word and a word to replace, click on replace without selecting any other fields.
click replace again, the same section is always targetted...
example.
Type in editor
oor oor1 oor2 oor3
Now search and replace oor by koor ....
Click on replace, then replace, then replace
The system will keep changing the first word and will not continue to the next one like (I think) it's supposed to
thank in advance
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1653400&group_id=75348&atid=543653
Change History (5)
comment:1 Changed 18 years ago by
Description: | modified (diff) |
---|---|
Reporter: | changed from Martin Kou to anonymous |
comment:2 Changed 17 years ago by
Owner: | set to Martin Kou |
---|---|
Status: | new → assigned |
comment:3 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with [408].
Click here for more info about our SVN system.
comment:4 Changed 17 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Oops... It is only working in Firefox, it's not working in Internet Explorer or Opera yet. Ticket reopened.
comment:5 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
With changeset [410], the new replace code is now compatible with Internet Explorer and Opera.
The current replace algorithm works by simply scanning from the beginning of the document in a depth first search. So, in your oor -> koor test case, the algorithm would keep replacing the "oor" in the newly generated "koor" strings.
The replace function in FCKeditor can be made more similar to that in MS Word by remembering the last replace position, for replace operations happening in the same replace dialog.