---
title: "tinymce.NotificationManager"
description: "This class handles the creation of TinyMCE&amp;#x27;s notifications."
canonical_url: "https://www.tiny.cloud/docs/tinymce/latest/apis/tinymce.notificationmanager/"
md_url: "https://www.tiny.cloud/docs/tinymce/5/apis/tinymce.notificationmanager/index.md"
version: "5"
last_updated: "2024-03-26T08:09:19Z"
tokens: 333
---
Important This page documents TinyMCE 5. For new projects, Tiny recommends using the latest, most up-to-date version. [See TinyMCE 8 documentation](../../../latest/apis/tinymce.notificationmanager/).
# tinymce.NotificationManager

This class handles the creation of TinyMCE’s notifications.

## Examples

```javascript
// 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()](#close) | Closes the top most notification. | `NotificationManager` |
| [getNotifications()](#getNotifications) | Returns the currently opened notification objects. | `NotificationManager` |
| [open()](#open) | Opens a new notification. | `NotificationManager` |

## Methods

### close()

```javascript
close()
```
Closes the top most notification.

### getNotifications()

```javascript
getNotifications(): Array
```
Returns the currently opened notification objects.

#### Return value

- `Array` - Array of the currently opened notifications.

### open()

```javascript
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](/docs/advanced/creating-custom-notifications/).
