Ticket #3517 (closed Bug: fixed)
"Match cyclic" field in Find & Replace dialog
| Reported by: | tobiasz.cudnik | Owned by: | tobiasz.cudnik |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.1 |
| Component: | General | Version: | |
| Keywords: | Confirmed Review+ | Cc: |
Description
I'm not sure if i understand correctly what "Match cyclic" should do, but if this is something like "Wrap search" or "Search from beginning after file end" then it acts in opposite way.
TC
- Use following content:
<p> This is some <strong>sample text</strong>. You are using^ <a href="http://www.fckeditor.net/">CKEditor</a>.</p>
- Search "are" with "Match cyclic" checked on. Nothing happens.
- Search "are" again, now with "Match cyclic" checked OFF. Now the text will be found.
Reproduced using r3500 in FF3, IE8.
Attachments
Change History
comment:2 Changed 4 years ago by garry.yao
- Keywords Confirmed added
The 'cyclic' option means to have effect only after your already reached document end once, yes, it's reasonable to have it work right from the beginning.
comment:3 Changed 4 years ago by tobiasz.cudnik
- Owner set to tobiasz.cudnik
- Status changed from new to assigned
comment:4 Changed 4 years ago by tobiasz.cudnik
- Keywords Review? added
Patch adds little recursion (the safe one) which allows to find searched text in first run, when searched text is before cursor and "match cyclic" is turned on.
comment:5 Changed 4 years ago by garry.yao
- Keywords Review- added; Review? removed
The recursion once idea is great, while the codes could be further simplified.
Note: See
TracTickets for help on using
tickets.
