Move OperationCompressor functionallity to a method on editor.model #6094
Labels
package:engine
status:discussion
type:improvement
This issue reports a possible enhancement of an existing feature.
Milestone
📝 Provide a description of the improvement
https://github.com/ckeditor/ckeditor5-engine/blob/master/src/model/operation/operationfactory.js
Here's
OperationFactory
in its full glory. Which is not a lot of glory.I'd like to move this functionallity to a place, which will be reachable from
editor
. For example,editor.model.createOperationFromJson()
.The case here is that we'd like to introduce a plugin, which is needed if we want to let users upload their editor builds to CS. This plugin needs
OperationFactory
. We'd like that plugin to be automatically added on a CS side, so the user does not need to add this plugin on their own to their build. So, we need to add it to.extraPlugins
. But it is not possible, becauseOperationFactory
needs to be imported and this raises duplicate modules error.If we have
editor.model.createOperationFromJson()
we would be able to make build uploading easier for our customers.Two additional things that we need to take under consideration:
The text was updated successfully, but these errors were encountered: