Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting batchType option in the setData method. #8807

Merged
merged 3 commits into from
Jan 12, 2021
Merged

Conversation

magda-chrzescian
Copy link
Contributor

Suggested merge commit message (convention)

Fix (engine): The setData method in dev-utils/model should support the batchType option. Closes #7947.

@magda-chrzescian magda-chrzescian requested a review from oleq January 12, 2021 08:56
Copy link
Member

@oleq oleq left a comment

Choose a reason for hiding this comment

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

Looks like the documentation of the method is incorrect. I think @param {String} [options.batchType='transparent'] should be @param {String} [options.batchType='default'] because when model#change() is executed, it creates a new Batch() with default arguments and the default batch type is 'default'.

@magda-chrzescian magda-chrzescian requested a review from oleq January 12, 2021 11:10
@oleq oleq merged commit 6e40289 into master Jan 12, 2021
@oleq oleq deleted the i/7947-batch-type branch January 12, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setData in ckeditor5-engine dev-utils/model ignores batchType option
2 participants