此类负责创建TinyMCE的通知。

示例

// 打开一个新的“错误”类型通知,文本为“发生了一个错误。”
tinymce.activeEditor.notificationManager.open({
  text: '发生了一个错误。',
  type: 'error'
});

概要

方法

名称概要定义者

close()

关闭最顶部的通知。

NotificationManager

getNotifications()

返回当前打开的通知对象。

NotificationManager

open()

打开一个新通知。

NotificationManager

方法

close()

close()

关闭最顶部的通知。


getNotifications()

getNotifications(): Array

返回当前打开的通知对象。

返回值

  • Array - 当前打开的通知数组。


open()

open(args: Object)

打开一个新通知。

参数

  • args (Object) - 一个 name: value 集合,包含设置,如:timeout、type 和消息(text)。

有关可用设置的信息,请参阅:创建自定义通知。