Page tree
Skip to end of metadata
Go to start of metadata

This property allows a custom button to be added to the screen EditLive! displays if it crashes attempting to load a large document. For more information on how this customisation changes the screen please refer to Managing Crashes.

This property requires EditLive! 7.6.0 or greater. 

Syntax

JavaScript
editliveInstance.setCrashAction(text, callback);

Parameters

text

A string used as the text on the "custom button" UI.

callback

A JavaScript function reference that will be executed when the "custom button" is clicked.

Examples

The following code will raise an alert dialog when the "custom button" button is clicked.

JavaScript
var crashFunction = function() {
  alert("editor crashed");
}
editlivejs.setCrashAction("Custom Button", crashFunction);
  • No labels