public interface EditorEmbedProvider
The embed providers can optionally be categorized by using the
type
OSGi property with any of the values defined in EditorEmbedProviderTypeConstants
. By default, the provider is categorized as
EditorEmbedProviderTypeConstants.UNKNOWN
, unless specified otherwise.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the embed provider's ID.
|
java.lang.String |
getTpl()
Returns the template that is used by the editor to embed the content.
|
java.lang.String[] |
getURLSchemes()
Returns an array with the URL schemes for the embed provider.
|
java.lang.String getId()
java.lang.String getTpl()
The template accepts the embedId
that represents the ID of
the content to embed. This value is obtained from URL scheme regular
expressions.
java.lang.String[] getURLSchemes()
Every URL scheme should contain a single matching group. This match is
used to replace the embedId
placeholder from the provided
template.