Ticket #3399 (closed Bug: invalid)

Opened 5 years ago

Last modified 5 years ago

Indenting multi-line paragraph indents entire paragraph

Reported by: highjinx_53 Owned by:
Priority: Normal Milestone:
Component: General Version: SVN (CKEditor) - OLD
Keywords: Cc:

Description

  • Open the replace by class example page.
  • Start with the following source:
    <p>
    line 1<BR>
    ^line 2<BR>
    line 3<BR>
    </p>
    
  • Press the indent button.
  • The middle line should be the only indented line, but all three lines are indented.

This can be reproduced in the nightly samples once #3398 is fixed.

I believe the solution is to create the following source on indent:

<p>
line 1<BR>
</p>
<p style="text-indent: 18pt">
^line 2<BR>
</p>
<p>
line 3<BR>
</p>

Does this sound right? If so, I can look into fixing it.

Change History

comment:1 Changed 5 years ago by garry.yao

  • Status changed from new to closed
  • Resolution set to duplicate

Nice discovery, this one would be at #3051.

comment:2 Changed 5 years ago by highjinx_53

  • Status changed from closed to reopened
  • Resolution duplicate deleted

#3051 has been closed, but this is still an issue. Reopening.

comment:3 Changed 5 years ago by fredck

  • Status changed from reopened to closed
  • Resolution set to invalid

Actually, the current is the expected behavior, at least with default settings, when enterMode='p'. In this case, the entire paragraph gets indented. Even MS Word has behaves like this.

The effect you're expecting having is achieved only when enterMode='br'. I've just tested it and it works properly.

So, no bug here.

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