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

Docs: Added example to clarify the case explained in the ticket. #1774

Merged
merged 2 commits into from
Aug 6, 2019

Conversation

Reinmar
Copy link
Member

@Reinmar Reinmar commented Aug 6, 2019

Suggested merge commit message (convention)

Docs: Added an example to clarify how to implement custom attribute upcast converters. Closes ckeditor/ckeditor5#4529.


Additional information

I also fixed the documentation for default priorities.

@Reinmar Reinmar requested a review from scofalik August 6, 2019 09:29
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling a1552c6 on t/1773 into c057a94 on master.

* // Convert <p>'s font-size style.
* // Note: You should use a low-priority observer in order to ensure that
* // it's executed after the element-to-element converter.
* editor.data.upcastDispatcher.on( 'element', ( evt, data, conversionApi ) => {
Copy link
Contributor

@scofalik scofalik Aug 6, 2019

Choose a reason for hiding this comment

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

element or element:p? The comment says <p>.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, my bad. I've been testing too many things.

@scofalik scofalik merged commit 44068ac into master Aug 6, 2019
@scofalik scofalik deleted the t/1773 branch August 6, 2019 09:54
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.

Upcast converter for element:* gets data.modelRange == null
3 participants