Skip to content

Commit

Permalink
Merge branch 't/10213' into major
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Mar 14, 2013
2 parents a61e9fd + 5366ed1 commit 8371034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/filter.js
Expand Up @@ -1871,7 +1871,8 @@
* Virtual class representing {@link CKEDITOR.filter#check} argument.
*
* This is a simplified version of the {@link CKEDITOR.filter.allowedContentRules} type.
* It may contain only one element and its styles, classes, and attributes.
* It may contain only one element and its styles, classes, and attributes. Only the
* string format and a {@link CKEDITOR.style} instances are accepted.
*
* @since 4.1
* @class CKEDITOR.filter.contentRule
Expand Down
5 changes: 4 additions & 1 deletion plugins/justify/plugin.js
Expand Up @@ -56,6 +56,10 @@
}

this.cssClassRegex = new RegExp( '(?:^|\\s+)(?:' + classes.join( '|' ) + ')(?=$|\\s)' );
this.requiredContent = 'p(' + this.cssClassName + ')';
}
else {
this.requiredContent = 'p{text-align}';
}

this.allowedContent = {
Expand All @@ -66,7 +70,6 @@
classes: this.cssClassName || null
}
};
this.requiredContent = 'p{text-align}';
}

function onDirChanged( e ) {
Expand Down

0 comments on commit 8371034

Please sign in to comment.