Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Introduced Schema#removeDisallowedAttribute #1124

Merged
merged 3 commits into from
Sep 4, 2017
Merged

Introduced Schema#removeDisallowedAttribute #1124

merged 3 commits into from
Sep 4, 2017

Conversation

oskarwrobel
Copy link
Contributor

@oskarwrobel oskarwrobel commented Sep 4, 2017

Suggested merge commit message (convention)

Feature: Introduced Schema#removeDisallowedAttributes method to filter out disallowed by schema attributes from given nodes. Closes ckeditor/ckeditor5#4172.

// TODO: this should be improved to check all combination of attributes.
for ( const attribute of node.getAttributeKeys() ) {
if ( !this.check( { name, attributes: attribute, inside: queryPath } ) ) {
if ( batch ) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is... sad :D Do I understand correctly that this will be simplified once we got the unified API?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope so :)

@scofalik scofalik merged commit d776c71 into master Sep 4, 2017
@scofalik scofalik deleted the t/1120b branch September 4, 2017 09:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A way to filter disallowed attributes on given nodes
3 participants