AutomaticDecorators (link)
@ckeditor/ckeditor5-link/src/utils
Helper class that ties together all LinkDecoratorAutomaticDefinition
and provides
the downcast dispatchers for them.
Filtering
Properties
-
Gives information about the number of decorators stored in the
AutomaticDecorators
instance. -
Stores the definition of automatic decorators. This data is used as a source for a downcast dispatcher to create a proper conversion to output data.
Methods
-
add( item )
module:link/utils~AutomaticDecorators#add
Adds automatic decorator objects or an array with them to be used during downcasting.
Parameters
item : LinkDecoratorAutomaticDefinition | Array.<LinkDecoratorAutomaticDefinition>
A configuration object of automatic rules for decorating links. It might also be an array of such objects.
-
getDispatcher() → function
module:link/utils~AutomaticDecorators#getDispatcher
-
getDispatcherForLinkedImage() → function
module:link/utils~AutomaticDecorators#getDispatcherForLinkedImage
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.