Add well-known contents by ID. This overrides any possible default or previously registered content state.
ReadonlygetRetrieve a content representation. The representation is either retrieved from configuration or some static content with reasonable defaults is provided.
ReadonlyhasValidates, if a content of given ID or URI path is explicitly available.
If not, methods such as getContent will provide some default content
instead.
numeric ID or URI path to validate
Initialize Plugin.
ReadonlyrequireValidates, if a content of given ID or URI path is explicitly available. If not, this method will escalate with an Error.
If this method fails, you should validate, if the default mock contents
provided here have been modified, or if you forgot calling addContents
before.
numeric ID or URI path to validate
the provided ID or URI path to validate as is
Plugin, which manages mocking contents. Contents may be pre-defined by ID in CKEditor configuration, or they may be defined on the fly via
addContent.getContentwill either provide one of these registered contents or fallback to some default behavior, which will be a static content of reasonable state.Example