Opened 16 years ago
Closed 16 years ago
#4999 closed Bug (fixed)
Undo unavailable after inserting template before editing content
| Reported by: | Damian | Owned by: | Garry Yao |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.2 |
| Component: | Core : Undo & Redo | Version: | SVN (CKEditor) - OLD |
| Keywords: | Confirmed IBM Review- | Cc: | Joe Kavanagh |
Description
- Open editor (do not edit content)
- Use template button to insert any template with "Replace content" option active.
Result: Undo is not available
Attachments (2)
Change History (10)
Changed 16 years ago by
| Attachment: | 4999.patch added |
|---|
comment:1 Changed 16 years ago by
| Keywords: | Review? added |
|---|---|
| Owner: | set to Garry Yao |
| Status: | new → assigned |
comment:2 follow-up: 3 Changed 16 years ago by
| Keywords: | Review- added; Review? removed |
|---|
Wouldn't it be better to add the save snapshots inside the setData?
Any plugin or external code that modifies the content will have to be aware of this behavior, I don't think that it's straightforward that people is required to save a snapshot themselves when they are calling an API to alter the content of the editor.
comment:3 Changed 16 years ago by
| Keywords: | Review? added; Review- removed |
|---|
Replying to alfonsoml: Definitely, nice prompt.
Changed 16 years ago by
| Attachment: | 4999_2.patch added |
|---|
comment:4 Changed 16 years ago by
| Keywords: | Review+ added; Review? removed |
|---|
comment:5 Changed 16 years ago by
| Component: | General → Core : Undo/Redo |
|---|---|
| Keywords: | Confirmed added |
| Resolution: | → fixed |
| Status: | assigned → closed |
| Version: | → SVN (CKEditor) |
Fixed with [5015].
comment:6 Changed 16 years ago by
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:7 Changed 16 years ago by
| Keywords: | Review- added; Review+ removed |
|---|
Btw, reverted with [5163].
comment:8 Changed 16 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |

Adding snapshots for inserting templates with replace mode.