Adds a given word to the blocklist. When adding already existing words in the list, it is expected, that no duplicate is added.
the word to be added to the blocklist
Returns all entries of the blocklist.
The whole blocklist
Observes the blocklist and returns the whole list when words are added or removed. If only changed values are relevant, a previous state of the list must be stored so that changes can be restored by comparing with the current state of the list.
The whole blocklist
Removes a given word from the blocklist.
the word to be removed from the blocklist
Service, used to manage a list of blocked words within CKEditor. Blocked words are words that should not appear in the editor content and should be taken care of by an editor. They are therefore highlighted within the text.
This service interface allows to add or remove words and observe the whole list. It is used in the
ckeditor5-blocklistplugin.The service has to be registered globally on the
serviceAgentand may then be retrieved by its descriptor, for example:Example