Static
Readonly
pluginAdd well-known contents by ID. This overrides any possible default or previously registered content state.
Rest
...configs: MockContentConfig[]Readonly
getRetrieve a content representation. The representation is either retrieved from configuration or some static content with reasonable defaults is provided.
Readonly
hasReadonly
requireValidates, 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
Error if the content is not explicitly defined.
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
.getContent
will either provide one of these registered contents or fallback to some default behavior, which will be a static content of reasonable state.Example