Opened 10 years ago
Last modified 9 years ago
#13430 confirmed Bug
Autoembed: undo deletes content typed after pasting autoembeddable link
Reported by: | Szymon Cofalik | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 |
Keywords: | Cc: |
Description
Steps to reproduce:
- Write some text.
- Paste
https://www.google.dk/maps/place/Zygmunta+S%C5%82omi%C5%84skiego+15,+Warszawa
- While autoembedded content is loading, type more text.
- Autoembedded content is inserted.
- Undo.
Expected result: Only link convertion should be undone, so the editor should contain some text, the link and the text typed in step 3.
Result: Not only link covertion was undone but also all the text typed in step 3 is deleted.
Note: This can't be tested in Firefox because after pasting the link the caret is "inside" <a>
element, so everything what we type is removed when the link is converted to embedded content.
Change History (3)
comment:1 Changed 10 years ago by
Keywords: | autoembed added |
---|
comment:2 Changed 10 years ago by
comment:3 Changed 9 years ago by
Keywords: | opera ie chrome autoembed removed |
---|---|
Status: | new → confirmed |
Tested on Firefox.
CKEditor 4.5.0-4.5.2: the result is text text embed_content
CKEditor 4.5.3: the result is text embed_content text
.
CKEditor 4.5.0-4.5.2: Result is as described by @scofalik.
CKEditor 4.5.3: Result is also as described but you need to press Undo/Ctrl+Z two or three times to actually undo the embed content. If you press once and wait the embed content gets recreated.
Might be fixed by #13429 (see comment 5)