Bug
th td elements.config.disallowedContent = 'p{text-align}';, alignment buttons disappear from toolbar. No problems with other elements e.g. config.disallowedContent = 'h2{text-align}';. CKE configuration:config.allowedContent = {
$1: {
elements: CKEDITOR.dtd,
attributes: true,
styles: true,
classes: true
}
};
config.disallowedContent = 'p{text-align}';
Not being able to set text alignment for configured elements via disallowedContent.
Alignment buttons disappeared from toolbar altogether after specifying p{text-align} disallowedContent rule.
The issue exists due to the fact that justify uses enter mode tag and text-align attribute to verify if it can be enabled. Responsible code for the issue is here:
https://github.com/ckeditor/ckeditor4/blob/422c2342ee3e6ddc219ec24698aa9dd62a484a78/plugins/justify/plugin.js#L63
Any workarounds for this?
Any workarounds for this?
@frankfuu No.
Edit: Or, sorry, not that I know of.