Opened 15 years ago

Closed 14 years ago

#3399 closed Bug (invalid)

Indenting multi-line paragraph indents entire paragraph

Reported by: Josh Nisly 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 (3)

comment:1 Changed 15 years ago by Garry Yao

Resolution: duplicate
Status: newclosed

Nice discovery, this one would be at #3051.

comment:2 Changed 14 years ago by Josh Nisly

Resolution: duplicate
Status: closedreopened

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

comment:3 Changed 14 years ago by Frederico Caldeira Knabben

Resolution: invalid
Status: reopenedclosed

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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy