Opened 6 years ago

Last modified 4 years ago

#8723 confirmed Bug

in chrome, span with class attribute removed when merging blocks on delete/backspace

Reported by: alissa Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Webkit Cc:

Description

  • set the enter mode to P or DIV
  • set some style, for example bold to add span with class='bold'
  • clean all text from the edited area
  • press enter (<p><br></p> will be added)
  • switch to bold
  • write some text (you will have <p><br></p><p><span class='bold'>aa</span></p>)
  • go to the 1st line
  • press delete

the expected result is that you'll get <p><span class='bold'>aa</span></p>

but instead you get <p>aa</p>

I understand that this is a webkit bug, but unfortunately I guess that when they will fix the issue it will be with inline style instead of a class.. thanks

Change History (2)

comment:1 Changed 6 years ago by Jakub Ś

Keywords: Webkit added; Chrome css class delete removed
Status: newconfirmed
Version: 3.6.23.0

I believe this is the same as - #7381 but the former was closed as "works for me".

In current version of Chrome 16.0.912.77 m and Safari 5.1.2 This issue can be reproduced from CKEditor 3.0.

Just paste in one of below codes:

<p><br></p><p><span class='abold'>aa</span></p>
<p>
	&nbsp;</p>
<p>
	<span class="abold">aa</span></p>
<p>
	<br /></p>
<p>
	<span style="font-family:comic sans ms;"><span class="abold">aa</span></span></p>
  1. Place curosor in first line
  2. Press delete

In all cases <span class='abold'> will be removed.

comment:2 Changed 4 years ago by Jakub Ś

This is still an issue in Chrome and Safari. Don't get fooled by extra span added on delete in Chrome. This isn't the same span - reported here: #9998.

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy