Opened 12 years ago

Closed 12 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:

Description

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.

ACTUAL CODE:

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

SHOULD BE

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

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:
http://sourceforge.net/tracker/index.php?func=detail&aid=1569555&group_id=75348&atid=543653

Change History (2)

comment:1 Changed 12 years ago by Martin Kou

Reporter: changed from Martin Kou to delella@…

comment:2 Changed 12 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy