Opened 16 years ago

Closed 16 years ago

#780 closed Bug (fixed)

Justification Buttons Function Improperly

Reported by: delella@… Owned by:
Priority: Normal Milestone: FCKeditor 2.5 Beta
Component: General Version:
Keywords: SF Cc:


The justify buttons do not function like a normal justification in any document program. According to all justification rules in text editors you should be able to have different lines with different justifications. However, in the FCKeditor this is not the case. For example:

  1. Open up the editor window and type a line of text,

hit enter, and type a second line.

  1. Try to left justify the top line and then right

justify the bottom line.

Notice the bottom line follows the alignment above it. This is cause by the replacement of the <p> tag with the div tags.


<div align="right">testing<br />
line <br />


<p>testing<br />
<div align="right">line 2</div>

The logic being that left justify does not require and div tags since by default the text goes left. The right and center tags should be turned on when the button is clicked. A value should be marked the one of the justify buttons is on. When the user changes the justify, the code should close the previous div and start the new.

Moved from SF:

Change History (2)

comment:1 Changed 16 years ago by Martin Kou

Reporter: changed from Martin Kou to delella@…

comment:2 Changed 16 years ago by Frederico Caldeira Knabben

Milestone: FCKeditor 2.5
Resolution: fixed
Status: newclosed

We have recently reworked the alignment feature and this should not anymore be an issue. For now, it is available at our SVN.

In any case, we'll never produce <div> inside <p>, which is completely wrong.

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