Opened 12 years ago

Closed 12 years ago

#9909 closed Bug (duplicate)

Webkit restores different deleted inline element

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

  1. Open inlinebycode sample.
  2. Open Elements tab in Dev toolbar and find editable.
  3. Delete editor's content, write 3 letters and bold them.
  4. Inspector shows that <strong> element was created.
  5. Place caret at the end and press delete key 3 times to delete all letters (3 times!).
  6. See in the inspector that <strong> has been removed.
  7. Type few letters.
  8. See that they are automatically bold.
  9. See that they are wrapped in <b> element.

Based on: http://stackoverflow.com/questions/14145970/chrome-empty-contenteditable-retaining-styling

So this is not the worst case. Answer on SO shows that Chrome also inlines style. Both cases won't be fixed by our htmlDataProcessor.toData().

I was able to reproduce this on inline and framed editors.

We may need custom delete behaviour to fix this. Or force Webkit to eventually fix this senseless behaviour.

Change History (2)

comment:1 Changed 12 years ago by Frederico Caldeira Knabben

Status: newconfirmed

Reporting a reduced TC to WebKit is the very first thing to be done.

comment:2 Changed 12 years ago by Jakub Ś

Resolution: duplicate
Status: confirmedclosed

There is a ticket about is already - #8438 plus some continuations that talk how difficult is to remove inline formatting - #8439, #8440.

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