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

Default style's command should remove attribute from model #148

Merged
merged 3 commits into from
Oct 11, 2017
Merged

Conversation

szymonkups
Copy link
Contributor

@szymonkups szymonkups commented Oct 4, 2017

Suggested merge commit message (convention)

Fix: Default style's command properly removes model's attribute. Closes ckeditor/ckeditor5#5121.


Additional information

When we are converting view to model in data pipeline we assume that default style is represented by absence of the imageStyle attribute in the model. Same when calculating value of style's command. But when applying default style, it's name was stored in attribute instead of removing whole attribute.

@szymonkups szymonkups requested review from Reinmar and oleq October 4, 2017 13:15
@Reinmar Reinmar merged commit c96fb19 into master Oct 11, 2017
@Reinmar Reinmar deleted the t/147 branch October 11, 2017 16:57
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.

The default style button is not "on" after switching back
2 participants