﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
16808	The Justify plugin doesn't obey the custom Advanced Content Filter rules	Marius Dumitru Florea	Mateusz Samsel	"== Steps to reproduce ==

1. Make sure the Justify plugin is available.
1. Configure the editor to use the following custom ACF rules:

{{{
allowedContent: 'p ul{text-align};li'
}}}

2. Load the editor. The Justify tool bar buttons are available, which is expected because we have the ""p ul{text-align}"" rule.
3. Verify that the custom ACF rules are active using the JavaScript console:

{{{
> CKEDITOR.instances.content.filter.check('ul{text-align}')
true
> CKEDITOR.instances.content.filter.check('li{text-align}')
false
}}}

4. Create a list

* first item
* second item

Place the caret on the second item. The Justify buttons are still enabled. Click on the ""Center"" button from the tool bar.

== Expected result ==

~~The Justify plugin should center the entire list (both items) because our custom ACF rules forbid the text-align style on the li element but allow it on the ul element.~~

Justify plugin should prevent of applying justification on disallow elements. If ACF forbid to apply text-align style on given element, then plugin should be disabled on such element.

== Actual result ==

The Justify plugin centers the second list item, thus generating invalid content from the point of view of the ACF.

== Other details (browser, OS, CKEditor version, installed plugins) ==

Any browser, Any OS, CKEditor 4.6.2, Justify plugin

Note that in my case I have to convert the generated HTML to a specific wiki syntax which doesn't support attributes/styles for the li element. So when the user saves the content the text-align style on the list item is lost. My users are thus complaining that the list alignment is lost. I don't want to disable the Justify plugin."	Bug	review	Normal		General	4.6.2		justify acf	
