Opened 13 years ago

Last modified 13 years ago

#8760 confirmed Bug

BR tags get removed when switching from source and back.

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

Description

  1. Set
    config.fillEmptyBlocks = false;
    config.enterMode = CKEDITOR.ENTER_BR;
    
  2. Pase the below in source mode and switch to wysiwyg
    <div style="text-align:justify;">
    test line 1</div>
    <div style="text-align:justify;">
    test line 2</div>
    
  3. Put caret behind test line 1^ and press enter two times
  4. Switch to source and wyswig two times

Results: because there is no &nbsp; tag behind <br /> tag, the br tags are removed.

Reproducible in all browsers from CKEditor 3.5

Change History (2)

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed

Please also have a look at: http://screencast.com/t/ovTjvVG6yxS4

comment:2 Changed 13 years ago by Jakub Ś

A workaround is to use:

config.fillEmptyBlocks = function(element){						
if(!element.children.length){								return false;
}	
}
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