Ticket #6033 (confirmed Bug)
[IE] Pasting over a readonly block merge the siblings and the pasted content
| Reported by: | Saare | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | Core : Pasting | Version: | 3.4 |
| Keywords: | IE | Cc: |
Description
- Load the following HTML:
<p> Para 1</p> <p contenteditable="false"> Para 2</p> <p> Para 3</p>
- Right click "Para 2".
- Paste some content.
Notice that para 1, the pasted content and para 3 are merged into one paragraph.
Attachments
Change History
Changed 3 years ago by krst
- Attachment krst_13.30.31.png added
comment:1 follow-up: ↓ 2 Changed 3 years ago by krst
- Status changed from new to confirmed
- Version set to 3.4
- Component changed from General to Core : Pasting
In my opinion if contenteditable="false" is set, only Copy should be allowed, or everything should be blocked.
comment:2 in reply to: ↑ 1 Changed 3 years ago by fredck
Replying to krst:
In my opinion if contenteditable="false" is set, only Copy should be allowed, or everything should be blocked.
That's true if you're inside read-only content, but not if you select the entire read-only element as a whole, which is what I think is happening in this tc.
A read-only element works much like an image, so it can be entirely deleted/replaced if the selection fully includes it, outside its boundaries.
comment:3 Changed 3 years ago by fredck
Note that the following represents the selection in IE, when right clicking with the above tc:
<p> Para 1[</p> <p contenteditable="false"> Para 2</p>] <p> Para 3</p>
So, theoretically, joining paragraphs is correct... but of course, this is not the way users see it.

Confirmed on IE8