Opened 9 years ago

Last modified 6 years ago

#7779 confirmed Bug

getData converts BR tag to nbsp

Reported by: Arne Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: IBM Cc: monahant@…

Description

  1. Go to demo page.
  2. Run the following in Firebug.
    CKEDITOR.instances.editor1.document.getBody().setHtml('<p>paragraph<br><br></p>');
    CKEDITOR.instances.editor1.getData();
    
    
  3. Observe the following result.
<p> paragraph<br /> &nbsp;</p>

Expected result (filler node should be removed):

<p> paragraph<br /></p>

Tested in Firefox 4, WinXP. CK version 3.5.3

Change History (3)

comment:1 Changed 9 years ago by Jakub Ś

Status: newconfirmed
Version: 3.1

Reproducible in all browsers from CKEditor version 3.1.

comment:2 Changed 7 years ago by Teresa Monahan

Cc: monahant@… added
Keywords: IBM added

comment:3 Changed 6 years ago by Jakub Ś

It would be nice to know if this issue is a bug or was this change intended.

We had this issue reported in #10146. It was partially fixed and is now continued in #10497. Perhaps fix from #10146 wasn't necessary as this is the real bug?

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