Checks if all widget instances are still present in the DOM.
Destroys those instances that are not present.
Reinitializes widgets on widget wrappers for which widget instances
cannot be found. Takes nested widgets into account, too.

This method triggers the checkWidgets event whose listeners
can cancel the method's execution or modify its options.

Parameters

[ options ]
:
Object

The options object.

Properties

[ initOnlyNew ]
:
Boolean

Initializes widgets only on newly wrapped
widget elements (those which still have the cke_widget_new class). When this option is
set to true, widgets which were invalidated (e.g. by replacing with a cloned DOM structure)
will not be reinitialized. This makes the check faster.

Parameters

Initialize widgets only on newly wrapped
widget elements (those which still have the cke_widget_new class). When this option is
set to true, widgets which were invalidated (e.g. by replacing with a cloned DOM structure)
will not be reinitialized. This makes the check faster.