Opened 12 years ago
Closed 12 years ago
#9522 closed Bug (fixed)
[Opera] Pasting by paste dialog inserts bogus <br>
Reported by: | Piotrek Koszuliński | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.0 |
Component: | Core : Pasting | Version: | 4.0 |
Keywords: | Opera | Cc: |
Description
- Open any sample.
- Focus editor.
- Click any of 'paste' buttons.
- Expected: Dialog opened, content not changed.
- Actual: Dialog opened, <br> inserted.
We had this issue before and it was caused by <br> filling empty <body> which *was* used as a pastebin.
Change History (6)
comment:1 Changed 12 years ago by
Keywords: | Opera added |
---|---|
Status: | new → confirmed |
comment:2 Changed 12 years ago by
Owner: | set to Piotrek Koszuliński |
---|---|
Status: | confirmed → assigned |
comment:3 Changed 12 years ago by
comment:4 Changed 12 years ago by
Status: | assigned → review |
---|
Fred came out with idea that manually appending bogus may help... And it helped. What's more - for all known issues :).
comment:5 Changed 12 years ago by
Status: | review → review_passed |
---|
comment:6 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
As I thought, Opera is filling empty pastebin (div) with
<br>
, what looks like pasted<br>
(there's no way to distinguish whether it's pasted or not).This is regression after https://github.com/ckeditor/ckeditor-dev/commit/a5b99a5, but I wouldn't focus on fixing selection, because we'll just waste time there possibly breaking something more important.
It may be possible to prevent Opera from appending this bogus
<br>
by some special combination of pastebin tag name and styles, but it may not be stable like in this case, so I haven't checked this way.I've got few other ideas, but I'm not fully convinced to at least one of them:
<br>
. It's not possible to copy it on Opera (although it's possible to copy it from e.g. Chrome). This is drastic solution :).I'm for 1. if there's no hidden reason for keeping that code. If there is a reason, then 3.