Opened 17 years ago
Closed 16 years ago
#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 (2)
Change History (10)
comment:1 Changed 17 years ago by
| Milestone: | CKEditor 3.0 → CKEditor 3.1 |
|---|
comment:2 Changed 17 years ago by
| Keywords: | Confirmed added |
|---|
comment:3 Changed 16 years ago by
| Owner: | set to Tobiasz Cudnik |
|---|---|
| Status: | new → assigned |
Changed 16 years ago by
| Attachment: | 3517.patch added |
|---|
comment:4 Changed 16 years ago by
| 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 16 years ago by
| Keywords: | Review- added; Review? removed |
|---|
The recursion once idea is great, while the codes could be further simplified.
Changed 16 years ago by
| Attachment: | 3517_2.patch added |
|---|
comment:6 Changed 16 years ago by
| Keywords: | Review? added; Review- removed |
|---|
I was missing this neat Array.prototype trick, thanks.
I'm adding Review? for 3517_2.patch.
comment:7 Changed 16 years ago by
| Keywords: | Review+ added; Review? removed |
|---|

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.