CKEditor5PluginManagerInterface
interface CKEditor5PluginManagerInterface implements DiscoveryInterface (View source)
Provides the interface for a plugin manager of CKEditor 5 plugins.
Methods
Gets a specific plugin definition.
Indicates if a specific plugin definition exists.
Returns a CKEditor 5 plugin with configuration from the editor.
Gets a list of all toolbar items.
Gets a list of all admin library names.
Searches for CKEditor 5 plugin that supports a given tag.
Gets the configuration for the CKEditor 5 plugins enabled in this editor.
Create a list of elements with attributes declared for the CKEditor5 build.
Details
mixed
getDefinition(string $plugin_id, bool $exception_on_invalid = TRUE)
Gets a specific plugin definition.
array
getDefinitions()
Gets the definition of all plugins for this type.
bool
hasDefinition(string $plugin_id)
Indicates if a specific plugin definition exists.
CKEditor5PluginInterface
getPlugin(string $plugin_id, EditorInterface|null $editor)
Returns a CKEditor 5 plugin with configuration from the editor.
array
getToolbarItems()
Gets a list of all toolbar items.
array
getAdminLibraries()
Gets a list of all admin library names.
array
getEnabledLibraries(EditorInterface $editor)
Gets a list of libraries required for the editor.
This list is filtered by enabled plugins because it is needed at runtime.
array
getEnabledDefinitions(EditorInterface $editor)
Filter list of definitions by enabled plugins only.
string|null
findPluginSupportingElement(string $tag)
Searches for CKEditor 5 plugin that supports a given tag.
array
getCKEditor5PluginConfig(EditorInterface $editor)
Gets the configuration for the CKEditor 5 plugins enabled in this editor.
array
getProvidedElements(array $plugin_ids = [], EditorInterface $editor = NULL, bool $retain_wildcard = FALSE)
Create a list of elements with attributes declared for the CKEditor5 build.