Opened 13 years ago
Closed 11 years ago
#8300 closed Bug (wontfix)
[Opera] extra BR appears at document start
Reported by: | Garry Yao | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.3 |
Keywords: | Opera VendorFix | Cc: | Hallvord R. M. Steen (Opera Software) |
Description
- Load editor with the following content:
<p contenteditable="false">foo</p>
- Actual: BR is automatically added above the block;
Attachments (1)
Change History (11)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Cc: | Hallvord R. M. Steen (Opera Software) added |
---|
It looks like a recent Opera regression instead of a editor bug, can you help to confirm it, hallvord?
comment:3 Changed 13 years ago by
Status: | new → confirmed |
---|---|
Version: | → 3.3 |
Reproducible form CKEditor 3.3
Changed 13 years ago by
Attachment: | test-non-editable-block.html added |
---|
comment:4 Changed 13 years ago by
Keywords: | VendorFix added |
---|
I've attached a browser tc, we need an Opera bug report.
comment:5 follow-up: 7 Changed 13 years ago by
Interesting issue, though it's not entirely clear to me how we *should* handle it. You expect a plain text node in front of the P so that the document will end up with some text inside a (read-only) P and some text directly as a child of BODY?
comment:6 Changed 13 years ago by
Regressions have been moved our of ckeditor-tests master to t/8300:
http://ckeditor.t/dt/plugins/forms/textarea.html
http://ckeditor.t/tt/5500/1.html
http://ckeditor.t/tt/6957/1.html
comment:7 Changed 13 years ago by
Replying to hallvord@…:
You expect a plain text node in front of the P so that the document will end up with some text inside a (read-only) P and some text directly as a child of BODY?
True, a basic point is that editor should not add any (final) extra stuff (in this case, the br element) to user content.
comment:8 Changed 13 years ago by
I guess this is one of the cases where we add a BR simply to make sure the cursor has somewhere to go - when there isn't even a text node to place the cursor in initially. I'll check the test case in some other browsers and report a bug internally.
comment:9 Changed 13 years ago by
All browsers are being weird here as far as I can tell. Summary:
- Chrome: doesn't seem to let me type anywhere at all.
- IE8: simply ignores the 'contenteditable="false"' and lets me type into the P
- Firefox 4: adds a BR much like Opera. Also, if I click on the read-only P's text the entire text is selected as a block (good) and afterwards I can't seem to get the cursor back to the start of the document (bad).
comment:10 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | confirmed → closed |
Not reproducible in Opera 15+ (Blink).
In addition it also affects the following content: