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

Use dispatchers configured in editor.conversion #162

Merged
merged 1 commit into from
Nov 26, 2019
Merged

Use dispatchers configured in editor.conversion #162

merged 1 commit into from
Nov 26, 2019

Conversation

zireael-0
Copy link

I'm creating a custom editor build that uses a different set of up- and downcast dispatchers, which are currently not used by the list plugin.

In order to select the correct dispatchers, I'd suggest to to fetch them using from the editor.conversion.for(dispatcherName) instead of using the ones within the Editing- and DataControllers.

This change should not make a difference to other builds since the default dataUpcast, dataDowncast and upcast dispatchers within editor.conversion are exactly what has been used before, anyways.

…rovided by DataController and EditingController
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 9072d97 on LinkiPinki:use-configured-dispatchers into 8116188 on ckeditor:master.

@jodator
Copy link
Contributor

jodator commented Nov 26, 2019

@Reinmar I've checked the PR and it generally does the same as a previous code. The thing is that we should stick to one (preferred) way of defining conversion utilities and keep them in sync. I'm going to merge it since IMO we should stick to one way of doing things.

I'll create an issue for that so we could sort it out in other repos or revert changes of this PR.

jodator added a commit that referenced this pull request Nov 26, 2019
Internal: Refactor use of conversion dispatchers. Closes ckeditor/ckeditor5#5792.
@jodator jodator merged commit 9072d97 into ckeditor:master Nov 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants