CKEDITOR.plugins.notification.area
Notification area is an area where all notifications are put. The area is laid out dynamically. When the first notification is added, the area is shown and all listeners are added. When the last notification is removed, the area is hidden and all listeners are removed.
Filtering
Properties
-
The editor instance.
-
Notification area DOM element. This element is created when the area object is created. It will be attached to the document when the first notification is added and removed when the last notification is removed.
-
The array of added notifications.
-
Event buffer object for editor change events to optimize performance.
-
Notification margin. Cached for performance reasons.
-
Notification width. Cached for performance reasons.
-
Event buffer object for UI events to optimize performance.
Methods
-
constructor( editor ) → area
CKEDITOR.plugins.notification.area#constructor
-
add( notification )
CKEDITOR.plugins.notification.area#add
Adds the notification to the notification area. If it is the first notification, the area will also be attached to the document and listeners will be attached.
Note that the proper way to show a notification is to call the CKEDITOR.plugins.notification.show method.
Parameters
notification : notification
Notification to add.
-
remove( notification )
CKEDITOR.plugins.notification.area#remove
Removes the notification from the notification area. If it is the last notification, the area will also be detached from the document and listeners will be detached.
Note that the proper way to hide a notification is to call the CKEDITOR.plugins.notification.hide method.
Parameters
notification : notification
Notification to remove.
-
Attaches listeners to the notification area.
-
-
Sets the position of the notification area based on the editor content, toolbar as well as viewport position and dimensions.
-
Detaches listeners from the notification area.