Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6510 closed Bug (fixed)

Margin mirroring doesn't respect style configuration

Reported by: Garry Yao Owned by: Tobiasz Cudnik
Priority: Normal Milestone: CKEditor 3.4.3
Component: Core : Styles Version: 3.4
Keywords: Cc:

Description

Currently the 'indent' and 'justify' plugin that on behavior of 'dirChange' event doesn't consider class-based styling configuration e.g. 'justifyClasses' and 'indentClasses'.

Attachments (2)

6510.patch (1.2 KB) - added by Tobiasz Cudnik 14 years ago.
6510_2.patch (3.5 KB) - added by Tobiasz Cudnik 14 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 14 years ago by Garry Yao

Status: newconfirmed

comment:2 Changed 14 years ago by Tobiasz Cudnik

Owner: set to Tobiasz Cudnik
Status: confirmedassigned

comment:3 Changed 14 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.5CKeditor 3.4.3

comment:4 Changed 14 years ago by Tobiasz Cudnik

Status: assignedreview

We can't mirror indentClasses, as they are linear. What we can do about them is to introduce a dedicated setting to the config named eg indentClassesRtl. Then it would be possible.

Changed 14 years ago by Tobiasz Cudnik

Attachment: 6510.patch added

comment:5 Changed 14 years ago by Garry Yao

Status: reviewreview_failed

Ok, I believe that it's enough to append the original class name a "_RTL"? Unfortunately there's no RTL CSS selector ;)

Changed 14 years ago by Tobiasz Cudnik

Attachment: 6510_2.patch added

comment:6 Changed 14 years ago by Tobiasz Cudnik

Status: review_failedreview

Second patch uses "_rtl" prefix for indentClasses. Additionally, dirChange event now send an explicit information about new direction.

comment:7 Changed 14 years ago by Garry Yao

Status: reviewreview_passed

Ok, looks good, be sure to append the following to _samples\assets\output_xhtml.css

.Indent1_rtl
{
	margin-right: 40px;
}

.Indent2_rtl
{
	margin-right: 80px;
}

.Indent3_rtl
{
	margin-right: 120px;
}

comment:8 Changed 14 years ago by Tobiasz Cudnik

Resolution: fixed
Status: review_passedclosed

Fixed with [6068], including output_xhtml.css changes.

comment:9 Changed 14 years ago by Tobiasz Cudnik

Committed into correct branch with [6087].

comment:10 Changed 14 years ago by Alfonso Martínez de Lizarrondo

This change has caused #6772

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