This is boilerplate-y enough that it should be the default behavior of Draftail – if no custom strategy is defined, use the following code with the entity's type. Note that this has to be implemented in Draftail first, then used in here. Would also save us from having to write complex tests of this behavior here.
The two current decorators define the following boilerplate as their strategy:
This is boilerplate-y enough that it should be the default behavior of Draftail – if no custom strategy is defined, use the following code with the entity's
type
. Note that this has to be implemented in Draftail first, then used in here. Would also save us from having to write complex tests of this behavior here.