Opened 17 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 Martin Kou)

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 17 years ago by Martin Kou

Description: modified (diff)
Reporter: changed from Martin Kou to anonymous

comment:2 Changed 17 years ago by Martin Kou

Owner: set to Martin Kou
Status: newassigned

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.

comment:3 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: assignedclosed

Fixed with [408].

Click here for more info about our SVN system.

comment:4 Changed 17 years ago by Martin Kou

Resolution: fixed
Status: closedreopened

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 Martin Kou

Resolution: fixed
Status: reopenedclosed

With changeset [410], the new replace code is now compatible with Internet Explorer and Opera.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy