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

  1. Load editor with the following content:
    <p contenteditable="false">foo</p>
    
  • Actual: BR is automatically added above the block;

Attachments (1)

test-non-editable-block.html (248 bytes) - added by Garry Yao 13 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 13 years ago by Garry Yao

In addition it also affects the following content:

<p><input type="text" value="foo" /></p>

comment:2 Changed 13 years ago by Garry Yao

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 Jakub Ś

Status: newconfirmed
Version: 3.3

Reproducible form CKEditor 3.3

Changed 13 years ago by Garry Yao

comment:4 Changed 13 years ago by Garry Yao

Keywords: VendorFix added

I've attached a browser tc, we need an Opera bug report.

comment:5 Changed 13 years ago by Hallvord R. M. Steen (Opera Software)

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 Frederico Caldeira Knabben

comment:7 in reply to:  5 Changed 13 years ago by Garry Yao

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 Hallvord R. M. Steen (Opera Software)

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 Hallvord R. M. Steen (Opera Software)

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 Piotrek Koszuliński

Resolution: wontfix
Status: confirmedclosed

Not reproducible in Opera 15+ (Blink).

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy