info
Description
This event fires after Content Editor encountered any info level event, but before a message dialog is shown. By default, Content Editor will show a message dialog for all such events. With an event listener for this event, you can prevent the display of info level messages.
It is possible to set up event listeners for listening to error, warn and info events. Returning false in the event listener will prevent the message dialog; the default behavior to show a dialog, will occur when returning any other value.
If you need to catch info level events in the startup of Content Editor , a good place to add the event listener is config.js which is located in the config folder of your Content Editor implementation.
Example
function showInfo (evt)
{
return false;
}
Editor.addEventListener("info", showInfo);
Usage
This event fires after Content Editor encountered any info level events but before the message dialog is shown. If you need to catch errors in the startup of Content Editor , a good place to add the event listener is config.js which is located in the config folder of your Content Editor implementation. Returning false in the event listener will prevent the message dialog; the default behavior to show a dialog, will occur when returning any other value.
info event
Properties
- type
String. A string identifying the error level. Can beerror,warn, orinfo.- message
String. A message describing the error, usually what is displayed to the user.