Opened 14 years ago

Last modified 12 years ago

#5471 confirmed Bug

Insert 'Div' result wrong in enterMode=BR

Reported by: Garry Yao Owned by:
Priority: Low Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description

Reproducing Procedures

  1. Load the 'enterkey' sample and switch enterMode from <P> to <BR>;
  2. Click on 'Div' command and insert a default div container.
  • Expected Result:
    <div>
    		This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>. </div>
    
  • Actual Result: Line is wrapped by an extra paragraph.
    <div>
    	<p>
    		This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
    </div>
    

Change History (1)

comment:1 Changed 12 years ago by Jakub Ś

Priority: NormalLow
Status: newconfirmed
Version: SVN (CKEditor) - OLD3.0

Currently this is how div container works - it inserts div with p inside. Thanks to such approach div is not replaced by other block level elements (like list or table) when they are inserted.

Perhaps adjusting div container to enter mode would require using attribute on this div?

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