Opened 10 years ago
Closed 10 years ago
#13532 closed Bug (fixed)
Autoembed: Spontaneous re–embed of a link after undo and paste a non–embeddable content
| Reported by: | Olek Nowodziński | Owned by: | Olek Nowodziński |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.5.2 |
| Component: | Core : Pasting | Version: | 4.5.0 |
| Keywords: | Cc: |
Description
- Open http://tests.ckeditor.dev:1030/tests/plugins/autoembed/manual/autoembed.
- Copy an URL.
- Paste the URL. The link becomes a widget.
- Undo.
- Place selection anywhere but not within a link.
- Copy and paste anything which is not embeddable.
Expected: Pasted a new content.
Actual: Pasted a new content and re–embedded the link.
Change History (6)
comment:1 Changed 10 years ago by
| Owner: | set to Olek Nowodziński |
|---|---|
| Status: | new → assigned |
comment:2 Changed 10 years ago by
| Status: | assigned → review |
|---|
comment:3 follow-up: 4 Changed 10 years ago by
| Status: | review → review_failed |
|---|
You set embedCandidatePasted after if(transferType == INTERNAL) return; so:
1-5. Same.
- Copy and paste anything intently in the editor.
Give the same result as before the fix.
Also ticket manual test would be useful witch steps to reproduce this ticket, for reviewer and the next release testers).
Additionally one line of description would be useful at the line where new variable is defined or used for the first time, now there is only ticket number at the last usage of it. It could also note that embedCandidatePasted should be set before any return.
comment:4 Changed 10 years ago by
| Status: | review_failed → review |
|---|
Nice catch!
Replying to pjasiun:
You set
embedCandidatePastedafterif(transferType == INTERNAL) return;so:1-5. Same.
- Copy and paste anything intently in the editor.
Give the same result as before the fix.
Fixed in branch:t/13532b.
Also ticket manual test would be useful witch steps to reproduce this ticket, for reviewer and the next release testers).
It's hardly necessary if the issue is fully covered by AT. KISS.
Additionally one line of description would be useful at the line where new variable is defined or used for the first time, now there is only ticket number at the last usage of it. It could also note that
embedCandidatePastedshould be set before anyreturn.
Done.

branch:t/13532