Opened 9 years ago

Last modified 6 years ago

#7091 confirmed Bug

Line breaks are converted to the same as set in EnterMode on switching selection to List and back

Reported by: Krzysztof Studnik Owned by:
Priority: Normal Milestone:
Component: Core : Lists Version: 3.0
Keywords: Cc:

Description

When I use text editor, i often use Shift+Enter to break lines and stay within the same paragraph, without loosing formating. It is also easy to change those paragraphs to numbered/bullet lists.
I tried the same use case in CKEditor:

Test case 1

  • Open CKEditor with EnterMode =P and ShiftEnterMode = BR
  • In Source mode paste
    <p>
    	Paragraph 1<br />
    	Line after BR</p>
    <p>
    	Paragraph 2<br />
    	Line after BR</p>
    
    
  • Switch to WYSIWYG
  • Select all and switch to Numbered or Bullet List

Expected result: There should be only two list items

<ul>
	<li>	Paragraph 1<br />
		Line after BR</li>
	<li>	Paragraph 2<br />
		Line after BR</li>
</ul>

Actual

<ul>
	<li>Paragraph 1</li>
	<li>Line after BR</li>
	<li>Paragraph 2</li>
	<li>Line after BR</li>
</ul>

Test case 2

  • See if result of Test case 1 is still selected.
  • Disable Numbered/Bullet list

Expected result

<p>
	Paragraph 1<br />
	Line after BR</p>
<p>
	Paragraph 2<br />
	Line after BR</p>

Actual

<p>	Paragraph 1</p>
<p>	Line after BR</p>
<p>	Paragraph 2</p>
<p>	Line after BR</p>

Similar thing happens when EnterMode is set to DIV and BR (Shift Enter mode is different than EnterMode setting)

Change History (2)

comment:1 Changed 8 years ago by Jakub Ś

Status: newconfirmed

comment:2 Changed 6 years ago by Piotrek Koszuliński

Still reproducible. Most likely caused by a bug in iterator or wrong usage of iterator.

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