You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 2 problems with the current conversion builder.
First, since the API is chainable, not declarative, it is hard to pass parameters to the config. Recently we realized that we need to make plugins like font size or headings configurable and conversion builder is nothing similar to what you want to pass to the config.
Second, since conversion builder mix all converters together it is hard to learn, based on in, how to create your custom converter.
editor.conversion will have predefined sets of dispatchers:
editor.conversion=newConversion();editor.conversion.register('data',editor.data.moveToView);editor.conversion.register('editing',editor.editing.moveToView);editor.conversion.register('model',[editor.editing.moveToView,editor.data.moveToView]);editor.conversion.register('view',editor.data.viewToModel);// The type of the conversion might be taken based on the constructor type.
Conversion function should get configuration defined the way it will be simple to use it with the conversion definition.
The text was updated successfully, but these errors were encountered:
Other: Conversion utilities refactor. Closes #1236.
---
### Additional information
* `ModelConverterBuilder` and `ViewConverterBuilder` are removed,
* `definition-based-converters` are removed,
* `conversion.Conversion` class is introduced,
* new converter functions, basing on declarative config, are introduced,
* other related changes.
mlewand
transferred this issue from ckeditor/ckeditor5-engine
Oct 9, 2019
There are 2 problems with the current conversion builder.
First, since the API is chainable, not declarative, it is hard to pass parameters to the config. Recently we realized that we need to make plugins like font size or headings configurable and conversion builder is nothing similar to what you want to pass to the config.
Second, since conversion builder mix all converters together it is hard to learn, based on in, how to create your custom converter.
This is why converters should be more specific. In the F2F talk with @Reinmar and @scofalik we agreed on the solution simmilar to what @szymonkups proposed some time ago.
There will be specific model to view converters like:
And corresponding view to model converters.
editor.conversion
will have predefined sets of dispatchers:Conversion function should get configuration defined the way it will be simple to use it with the conversion definition.
The text was updated successfully, but these errors were encountered: