tinymce.NotificationManager

This class handles the creation of TinyMCE’s notifications.

Examples

// Opens a new notification of type "error" with text "An error occurred."
tinymce.activeEditor.notificationManager.open({
   text: 'An error occurred.',
   type: 'error'
});

Summary

Methods

Name Summary Defined by

close()

Closes the top most notification.

NotificationManager

getNotifications()

Returns the currently opened notification objects.

NotificationManager

open()

Opens a new notification.

NotificationManager

Methods

close()

close()

Closes the top most notification.


getNotifications()

getNotifications(): Array

Returns the currently opened notification objects.

Return value

  • Array - Array of the currently opened notifications.


open()

open(args: Object)

Opens a new notification.

Parameters

  • args (Object) - A name: value collection containing settings such as: timeout, type, and message (text).

For information on the available settings, see: Create custom notifications.