Static
getReturns the "toModel" function from the registry for a given type.
the type of the content object
the content uri
the "toModel" function or undefined if no entry exists for the given type
Static
registerRegisters a "toModel" function for a certain type.
the type (identifier) of the content object
a function that describes how to create the editor model element
The ContentToModelRegistry is a util class that allows to provide information on how to insert certain content objects into the editor's model.
By using registerToModelFunction, a type/function pair can be registered. All registry entries will then be evaluated in the DataToModelMechanism to properly insert a content object with a given type (e.g. "link" or "image").
The ContentToModelRegistry can be accessed by other plugins via the ContentClipboardEditing plugin.