Opened 9 years ago

Last modified 9 years ago

#13830 confirmed Bug

Inconsistencies in removing inline styles (or text) with backspace key

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description (last modified by Jakub Ś)

Steps to reproduce

  1. Paste below code into source mode and switch to wysiwyg
    <p><span style="color:#0000FF"><span style="font-size:20px">abc</span></span></p>
    
    <p><span style="color:#0000FF"><span style="font-size:20px">abc</span></span></p>
    
  2. Place cursor behind second 'abc' and press backspace 3 times to remove 'abc' from second line.

Results:
FF - You can't remove inline style that way (at least the first time). Element's path is still showing body span span. Even pressing Delete after 3xBackspace doesn't remove inline style. There is also one weird issue (reproducible from CKE 3.5.1) where you can remove inline style. Please see FF video.

Blink - Elements path is showing body p but if you start typing you are getting styled text and elements path shows body p font span. Just like in Firefox there is a case where you can remove inline style. Please see: #9998 (<strong> becomes <b> example), #13820 and new issue #14302.

IE11 - Elements path is showing body p but if you start typing you are getting styled text and elements path shows body p font. Please see #13775.

IE8-IE10 - it is not possible to remove inline style that way. Element path will always show body p span span and thext is always styled.

Expected result

This is a very good question and I'm personally not sure what the proper approach here is. Should users be able to delete text with styles that way or should they be allowed to delete just text?

The first option will require assigning inline styles once more. The second option seems more common but to remove inline styles users would have to use toolbar or styles shortcuts.

MS Word doesn't allow removing inline style using backspace. You have to use toolbar to undo them. This might be a way to go - such approach is most intuitive and most user frienfdly IMHO

Attachments (1)

FF.swf (832.9 KB) - added by Jakub Ś 9 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by Jakub Ś

Status: newconfirmed

Other tickets relatedtto that problem: #13820, #12139, #13504, #5026 (Test 2), #13224, #13225, #14302, #13870.

Last edited 9 years ago by Jakub Ś (previous) (diff)

Changed 9 years ago by Jakub Ś

Attachment: FF.swf added

comment:2 Changed 9 years ago by Jakub Ś

Description: modified (diff)

comment:3 Changed 9 years ago by Jakub Ś

Description: modified (diff)
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