Opened 7 years ago

Closed 7 years ago

#10038 closed Bug (duplicate)

Span becomes a font tag

Reported by: tema Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

  1. open http://nightly.ckeditor.com/13-02-05-08-51/standard/samples/replacebyclass.html
  2. using javascript console:
CKEDITOR.instances.editor1.setData('<span style="color:#ff0000;">hello</span>')
  1. select all text, press backspace (remove everything)
  2. start typing new text

Now: new text is wrapped in <font> tag with "color" attribute Expected: either plain black text or text wrapped in original span with red color

Can I fix this by changing config or something?

Change History (2)

comment:1 Changed 7 years ago by tema

Same happens using "Text color" button.

comment:2 Changed 7 years ago by Jakub Ś

Resolution: duplicate
Status: newclosed
Version: 4.0.2 (GitHub - master)

DUP of #8082

This is Webkit issue. Try doing the same in plain content editable element. You will get the same result:

<body contenteditable="true"><!--contenteditable="true"-->
<span style="color:#ff0000;">hello</span>
</body>
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy