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

Fix: Add proper check for name-only view matcher in to attribute upcast converters. #1787

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

jodator
Copy link
Contributor

@jodator jodator commented Aug 29, 2019

Suggested merge commit message (convention)

Fix: Add proper check for name-only view matcher in to attribute upcast converters. Closes ckeditor/ckeditor5#4534.


Additional information

  • The internal method onlyViewNameIsDefined() was failing to properly check if view config was defined with only a name when view configuration was defined as a callback. It always assumed that the name was defined.

@jodator jodator requested a review from mlewand August 29, 2019 09:06
…nverters.

The internal method onlyViewNameIsDefined() was failing to properly check
if view config was defined with only a name when view configuration was
defined as a callback. It always assumed that the name was defined.
Copy link
Contributor

@mlewand mlewand left a comment

Choose a reason for hiding this comment

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

LGTM

On a side note: I find the docs in this helper are a bit tricky thing.

@mlewand mlewand merged commit 2210696 into master Aug 29, 2019
@mlewand mlewand deleted the t/1786 branch August 29, 2019 12:59
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 upcast element to attribute fails to convert when upcastAlso is defined as a function
2 participants