此类负责创建TinyMCE的通知。
示例
// 打开一个新的“错误”类型通知,文本为“发生了一个错误。”
tinymce.activeEditor.notificationManager.open({
text: '发生了一个错误。',
type: 'error'
});概要
方法
| 名称 | 概要 | 定义者 |
|---|---|---|
close() | 关闭最顶部的通知。 |
|
getNotifications() | 返回当前打开的通知对象。 |
|
open() | 打开一个新通知。 |
|
方法
close()
close()
关闭最顶部的通知。
getNotifications()
getNotifications(): Array
返回当前打开的通知对象。
返回值
Array- 当前打开的通知数组。
open()
open(args: Object)
打开一个新通知。
参数
args (Object)- 一个name: value集合,包含设置,如:timeout、type和消息(text)。
有关可用设置的信息,请参阅:创建自定义通知。