The options object used in the
NimbudocsEditor.create method.Properties
- actionMapString|Object
-
Specifies the action map. Either accepts an object, JSON string or a URL. If this is not set, the default action map is used.
It is generally recommended to use
options.actionMapExtensioninstead.Type:
- String | Object
- Guides:
-
- Tutorial: Customization
- actionMapExtensionString|Object|Array
-
Specifies extensions to the action map. Either accepts an object, a JSON string, a URL string or an array of any of these. Existing properties are overridden.
Type:
- String | Object | Array
- Default Value:
{}
- Guides:
-
- Tutorial: Customization
- allowDefaultColorsBoolean
-
Whether to display the default colors in color dialogs.
Type:
- Boolean
- Default Value:
true
- allowFreeColorsBoolean
-
Whether to display color pickers in color dialogs.
Type:
- Boolean
- Default Value:
true
- allowPresetColorsBoolean
-
Whether to display preset colors in color dialogs.
Type:
- Boolean
- Default Value:
true
- See:
- apiKeyString
-
Set the API key to authenticate the client with the server.
Type:
- String
- authenticationCredentialsObject
-
An object to specify basic authentication credentials which are set on connections made from the Nimbudocs Editor server (e.g. to load documents or resources like images or CSS files).
Type:
- Object
Properties:
Name Type Argument Description usernameString optional
The user name passwordString optional
The password - Default Value:
{}
Example:
authenticationCredentials: { username: "myuser", password: "mypassword" } - autoCorrectObject
-
Enables and configures the auto correction functionality and behavior.
Type:
- Object
Properties:
Name Type Argument Default Description enabledBoolean optional
falseWhether auto correction is enabled or not. correctorsObject optional
{}Properties
Name Type Argument Default Description autoHyperlinkingBoolean optional
falseWhether hyperlinks are automatically created. sentenceStartUpperCaseBoolean optional
falseWhether to start a new sentence with an upper cased word. Can also be set to "latinOnly", so that the word is only corrected if it starts with a latin letter. cellStartUpperCaseBoolean optional
falseWhether to start a cell with an upper cased word. expressionReplacerBoolean optional
falseWhether to enable the automatic replacement of expressions (see presetCorrections).wordStartCapsLockBoolean optional
falseWhether to correct two upper cased letters at the beginnings of words. presetCorrectionsObject optional
{}An object containing expression replacements for various languages. - Default Value:
{}
Example:
var options = { autoCorrect: { enabled: true, correctors: { autoHyperlinking: true, sentenceStartUpperCase: true, cellStartUpperCase: true, expressionReplacer: true, wordStartCapsLock: true }, presetCorrections: { "": { // the empty string represents // language independent replacements "(r)": "\u00AE", "(c)": "\u00A9", "(tm)": "\u2122", ":-)": "\u263A", "-->": "\u2192", "<--": "\u2190", "<->": "\u2194" }, "en-US": { "i.e.": "that is", "e.g.": "for example" }, "de-DE": { "d.h.": "das heißt", "evtl.": "eventuell" }, "fr-FR": { "s.o.": "sans objet", "n.a.": "non applicable", "p.": "page" } } } }; - clipboardInteger
-
Clipboard configuration options
Type:
- Integer
Properties:
Name Type Argument Description maxSizeNumber optional
Maximum size (in bytes) a selection can have to be transfered to the client automatically. If the limit is exceeded the "Copy" dialog will be displayed on the client to be able to copy the current selection. - Default Value:
{maxSize: 1000000}
- collabIdString
-
Specifies the ID of an editor session in collaboration mode that will be joined. If the ID is set the boolean value false, the editor will ignore collab IDs that have been with a URL parameter.
Type:
- String
- collabPasswordString
-
Specifies the password of the collaboration session that will be joined.
Type:
- String
- Default Value:
null
- collabUrlString
-
Specifies the URL to the collaboration page where users can join the current editing session for collaboration.
Type:
- String
- Default Value:
null
- containerElementsArray.<String>
-
Declares the specified elements as container elements. Container elements behave differently from other block level elements in that they can contain other block level elements (such as "p") and are not split when pressing the enter key while the caret is inside the element. Instead, a default paragraph element is inserted within the element when the enter key is pressed. Some of the elements that behave as container elements by default in the editor are "div" and "form".
Type:
- Array.<String>
- Default Value:
[]
Example:
var elementName = [ "element1", "element2" ]; - cookiesObject
-
An object containing key/value pairs of cookies to be set on connections made from the Nimbudocs Editor server (e.g. to load documents or resources like images or CSS files).
Type:
- Object
- Default Value:
{}
Example:
cookies: { "cookie1Name": "cookie1Value", "cookie2Name": "cookie2Value" } - dateObject
-
Configures various date properties.
Type:
- Object
Properties:
Name Type Argument Default Description formatString optional
nullThis string defines the pattern of dates that are shown in the editor. The pattern is based on the java class SimpleDateFormat (http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html) localeString optional
This language code is used for localized date formats, e.g. the code "en-US" would make the weekdays to appear in English. By default, the language is defined by the server and its environment. timezoneString optional
Displayed dates will be converted to this time zone. By default, the time zone is defined by the client's browser. - Default Value:
null
- defaultBaseUrlString
-
Specifies a default base URL for any documents that is used if no document base URL is supplied.
Type:
- String
- defaultDocumentTemplateString
-
Loads a default document template into the editor from an HTML string. This document template will be used if no document is specified/loaded using the document/documentUrl option or one of the loadDocument methods
Type:
- String
- defaultDocumentTemplateBaseUrlString
-
The base URL to use for the defaultDocumentTemplateUrl option. If not specified the This document template will be used if no document is specified/loaded using the document/documentUrl option or one of the loadDocument methods
Type:
- String
- defaultDocumentTemplateUrlString
-
Loads a default document template into the editor from an URL. This document template will be used if no document is specified/loaded using the document/documentUrl option or one of the loadDocument methods
Type:
- String
- defaultLengthUnitString
-
Configures the default length unit that is used to display certain values, e.g. when resizing an image. Supported units are cm, mm, in, pt and pc.
Type:
- String
- Default Value:
"cm"
- disableDefaultFontsBoolean
-
Whether a set of default fonts should be usable in the document and displayed in the font drop down.
Type:
- Boolean
- Deprecated:
- Yes
- Default Value:
false
- See:
-
fontSettings.disableDefaultFonts
- documentString
-
Loads a document into the editor from an HTML string. This option saves the request which would be made when using the loadDocument API method after initializing the editor (only when the retriever is not enabled).
Type:
- String
- documentUrlString
-
Loads a document into the editor from a URL. This option saves the request which would be made when using the loadDocumentFromUrl API method after initializing the editor (only when the retriever is not enabled).
Type:
- String
- editorStyleSheetsArray.<styleSheet>
-
Allows to set editor styles which will be loaded while initializing the editor. This option saves the request(s) which would be made when using the addEditorStyleSheet API method after initializing the editor (only when the retriever is not enabled).
Type:
- Array.<styleSheet>
Properties:
Name Type Description styleSheetObject A representation of a style sheet as an object. Properties
Name Type Argument Default Description contentString optional
The content of the editor style sheet to be added. titleString optional
The title of the editor style sheet to be added. The title can be used to manipulate this style sheet through other methods. If no title is set, the style sheet will be given an unique identifier as title. urlString optional
The URL this style sheet will be loaded from. If both the contentandurlparameters are set, theurlis set as the base URL for the style sheet.overwriteBoolean optional
falseDetermines behavior when a style sheet with the specified titlealready exists in the document. Set totrueto overwrite and replace the existing style sheet. Set tofalseto merge the new styles into the existing style sheet with the same name.- Default Value:
[]
- fontSettingsBoolean|Object
-
Configures font settings.
Type:
- Boolean | Object
Properties:
Name Type Argument Description disbableDefaultFontsBoolean optional
Whether a set of default fonts should be usable in the document and displayed in the font drop down. preloadFontsBoolean optional
Whether the fonts should be preloaded on editor start. showDefaultFontFamilyBoolean optional
Whether to display a [Default] entry - which removes the current inline font family style - in the font family drop down Disabling preload might improve loading performance, however it also could impact editing performance when choosing a non-preloaded font for the first time. - Default Value:
{disableDefaultFonts: false, preloadFonts: true, showDefaultFontFamily: false}
- formValidationString
-
The form validation mode. Can be "ontype", "oncaretelementchange" or "".
Type:
- String
-
A Nimbudocs Editor configuration object which is set on the internal Header/Footer editor. Some configuration values in this object are overridden by default values: - The "pageMode" will always be set to "continuous" - The "collabId" is set to "false" - The "retriever" setting will be inherited from the "parent" editor configuration - The "onready" callback will only be called after an internal default "onready" callback There is one additional configuration parameter: - "passdownStyles" if set to true all styles from the main editor will be passed down to the Header/Footer editor.
Type:
- Object
- Default Value:
undefined
- heightString|Number
-
The height either as a string including a unit or as a number. If set as a number, the value will be applied in pixels.
Type:
- String | Number
- Default Value:
null
- See:
- imageMaxSizeInteger
-
Maximum size (width and height) for images. Exceeding sizes will be scaled down when sending the image to the client. The image in the source document will not be modified. This applies only for replaced elements that are raster images, MathML, bar codes, etc.
Type:
- Integer
- Default Value:
1000
- imageMinSizeInteger
-
Minimum size (width and height) at which non-raster images (e.g. SVGs) will be rendered.
Type:
- Integer
- Default Value:
100
- imageScaleFactorInteger
-
Scale factor at which non-raster images (e.g. SVGs) are rendered.
Type:
- Integer
- Default Value:
3
- loadBalancerCookieObject
-
When using a load balancer, this specifies the name and value of the load balancer's cookie.
Type:
- Object
Properties:
Name Type Argument Default Description nameString The name of the load balancer's cookie. This defaults to the cookie name of the Amazon Web Services Elastic Load Balancer. valueString optional
""The value of the load balancer's cookie. - Default Value:
{name: "AWSELB"}
- localeString|Array.<String>|Object
-
Set the locale of the editor. Use a string to force a specific locale. The array option sets an array of allowed locales. The detected browser locale is then matched against this array to determine the editors locale. Using the object configuration you can configure the above and additionally a fall back language which should be used if there is no localization for the current locale.
Type:
- String | Array.<String> | Object
Properties:
Name Type Description {String|String[])[supportedLocales] The supported locale(s) as a String or String array. Same as the non-object configuration. {String)[fallbackLanguage] The fall back language - Default Value:
["en-US", "de-DE", "fr-FR"]
Example:
locale: { supportedLocales: ["en-US", "de-DE"], fallbackLanguage: "fr-FR" } - localeExtensionObject
-
Specifies extensions to a localization dictionary for a specific language.
Type:
- Object
Properties:
Name Type Argument Default Description localeCodeString The language code for which the extension is applied. stringsString | Object | Array optional
{}Either an object consisting of pairs of locale codes and value strings or URL to a JSON of such an object or an array of any of these. - Default Value:
{}
- Guides:
-
- Tutorial: Customization
Example:
var localeExtension = { "en-US": { "MY_CODE": "my description" }, "de-DE": { "MY_CODE": "meine Beschreibung" } }; - logLevelString
-
Configures the log level. Supported log levels are: SEVERE, WARNING, INFO, CONFIG, FINE, FINER, FINEST, ALL
Type:
- String
- Default Value:
"INFO"
- objectFormatterObject
-
Type:
- Object
Properties:
Name Type Argument Default Description backgroundColorString optional
Sets the background color of the object rectangle as Hex color value. Defaults to #EBEAEA borderColorString optional
Sets the border color of the object rectangle as Hex color value. Defaults to #222222. borderWidthInteger optional
Sets the border width of the object rectangle integer value. Defaults to 1. displayDefaultImageBoolean optional
trueIf set to true and the object element type is unknown/not configured, display a default image in the center of the object rectangle. Defaults to true. defaultImageUrlString optional
The URL to the image which should be displayed as default image. objectTypesArray.<Object> optional
[]Specifies an array of object types and their corresponding images to be displayed at the center of the object rectangle. - Default Value:
{}
Example:
var options = { objectFormatter: { backgroundColor: "#FF0000", borderColor: "#00FF00", borderWidth: 50, displayDefaultImage: true, defaultImageUrl: "http://host.com/mydefaultimage.png", objectTypes: [ { type: "application/x-shockwave-flash", imageUrl: "http://host.com/flash.png" }, { type: "audio/x-mpeg", imageUrl: "http://host.com/mp3.png" } ] } } - overlayAndIndicatorObject
-
Configures the splash-screen behavior of Nimbudocs Editor. By default a cloud background and a loading indicator is displayed during startup of the editor. Set to
falseto disable background and indicator.Type:
- Object
Properties:
Name Type Argument Description overlayAlwaysTransparentBoolean optional
Normally the overlay will be black with an opacity of 0.4. Set this to true so that the overlay will always be transparent. alwaysHideIndicatorBoolean optional
Set to true to never show the loading indicator. overlayColorString optional
Set the color of the overlay (CSS color value e.g. #00000, rgb(0,0,0), ...) overlayOpacityString optional
Set the opacity of the overlay (0-1) - Default Value:
{}
- pageModeString
-
The page mode on editor start. Can be either "singlesided" or "continuous".
Type:
- String
- Default Value:
"singlesided"
- passdownStylesBoolean
-
Configures if all styles from the main editor will be passed down to the Header/Footer editor.
Type:
- Boolean
- Default Value:
false
- See:
-
headerFooterEditorConfiguration
- presetColorsObject
-
An object containing key/value pairs of color names and their valid CSS Colors values (e.g. hex, rgb, cmyk).
Type:
- Object
- Default Value:
{}
- See:
Example:
var options = { presetColors: { Crimson: "#DC143C", "Dark olive green": "#556B2F", "F0FFF0": "#F0FFF0", } }; - requestHeadersObject
-
An object containing key/value pairs of request headers to be set on connections made from the Nimbudocs Editor server (e.g. to load documents or resources like images or CSS files).
Type:
- Object
- Default Value:
{}
Example:
requestHeaders: { "MyHeader": "MyHeaderValue", "MyHeader2": "MyHeaderValue" } - restoreAutosaveObject
-
This allows to restore create an editor session from an existing auto save file on the server. This can e.g. be used after moving an auto save state of an editor session from one server to another using the REST API (editor/data/autosave/).
Type:
- Object
Properties:
Name Type Description documentIdString The document ID (@see NimbudocsEditor#getDocumentId).userIdString The user ID (@see NimbudocsEditor#getUserId).- Default Value:
null
- retrieverObject
-
If resources are on an internal network and can not be accessed from the Nimbudocs Editor server, the retriever can be enabled. If enabled, resources are loaded by the client, who has access to them, and are then sent to the Nimbudocs Server.
Type:
- Object
Properties:
Name Type Argument Description enabledBoolean optional
Enables / disables the retriever. timeoutNumber optional
Sets the time in seconds, that the client has to retrieve a resource. The higher the value, the longer the editor will wait for a resource, "blocking" the editor. If the value is too low on the other hand, a resource might not be loaded in time, meaning that it can not be used by the editor. If the value is zero or less, the default time (set on the server) is used, e.g. 30 seconds. - Default Value:
{enabled: false, timeout: 0}
- selectionColorArray.<Number>
-
An RGBA-array defining the default color of the selection. The first three entries are numbers between 0 and 255 for red, green and blue. The last entry is a number between 0.0 and 1.0 for the alpha channel, where 0 is completely transparent.
Type:
- Array.<Number>
- Default Value:
[0, 128, 255, 0.2]
- showSemanticElementsBoolean
-
Configures if semantic elements like e.g. strong, em, samp, etc. should be highlighted in the editor.
Type:
- Boolean
- Default Value:
true
- spellCheckerObject
-
Configuration for the spell checker.
Type:
- Object
Properties:
Name Type Argument Default Description autoCheckBoolean optional
falseWhether auto spell check is enabled or not. defaultLanguageString optional
The default spell checker language if no language is specified in the document. - Default Value:
{autoCheck: false}
- splashScreenBoolean|Object
-
Configures the splash-screen behavior of Nimbudocs Editor. By default a cloud background and a loading indicator is displayed during startup of the editor. Set to
falseto disable background and indicator.Type:
- Boolean | Object
Properties:
Name Type Argument Description backgroundBoolean | String optional
Set to false (Boolean) to disable the background or specify an URL (String) to a background image (resolved relative to the integration base). indicatorBoolean | String optional
Set to false (Boolean) to disable the indicator or specify an URL (String) to an indicator image (resolved relative to the integration base). - Default Value:
{}
- tableConfigObject
-
An object defining configuration options specific to tables.
Type:
- Object
Properties:
Name Type Argument Description defaultWidthUnitString optional
The default with unit used when adjusting the table width. defaultHeightUnitString optional
The default height unit used when adjusting the table width. - Default Value:
{defaultWidthUnit: "cm", defaultHeightUnit: "cm"}
- themeObject
-
The theme options.
Type:
- Object
Properties:
Name Type Argument Default Description nameString optional
"default"The name of the theme. Use one of the included themes: "default", "nimbudocs-classic", "nimbudocs-blue", "cupertino", "redmond", "flick", "ui-lightness". If you have added your own theme to the Nimbudocs WAR file (inside a folder in "client/nimbuDocs/themes/") use the name of the folder. urlString optional
The Url to a jQuery theme CSS file. The Url has priority over the name property. iconRepositoryUrlString optional
The URL to the icon repository to be used for icons of the tool bar. If omitted, a default icon repository on the application server is used. useSpriteIconsbooelan optional
Wether to use "sprite icons" (all icons are combined into a single image, access through CSS background position) for the tool bar. This is enabled by default. If an icon Url is configured for a specific action this will take precedence over the sprite icon. spriteIconCssUrlString optional
The Url to a custom CSS sprite icon map. You can create a CSS and the corresponding sprite icon image using the "spriteicontool/spriteicons.jar" from the "nimbudocs-integration-resources.zip" available for download on the integration overview page. Please have a look at the separate readme contained in the "spriteicontool/" folder for more information. - Default Value:
null
- toolbarObject
-
Type:
- Object
Properties:
Name Type Argument Description hidePanelDescriptionBoolean optional
Whether to hide the tool bar panel description. hideSingleTabsBoolean optional
Whether to hide the tab navigation bar of the tool bar when the UI only consists of one tab. singleRowObject optional
Whether to display tool bar icons in a single row Properties
Name Type Argument Description enabledBoolean optional
Whether to enable the "single row" icon mode. iconSizeString optional
All icons will have the same size in single row mode. By default the size will be "mediumPanel". Can be one of "tinyPanel", "smallPanel", "mediumPanel" or "largePanel" - Default Value:
null
- uiConfigString|Object
-
Specifies the UI config. Either accepts an object, a JSON string or a URL string.
If this is not set, the default uiconfig is used.
Type:
- String | Object
- userNameString
-
The user name.
Type:
- String
- userPreferencesObject
-
The user preferences.
Type:
- Object
Properties:
Name Type Argument Description loadurldialogString optional
The URL used in the "Load document from URL dialog". autocorrectObject optional
The autocorrect preferences. Properties
Name Type Argument Description autoHyperlinkingBoolean optional
Whether hyperlinks are automatically created. sentenceStartUpperCaseBoolean optional
Whether to start a new sentence with an upper cased word. cellStartUpperCaseBoolean optional
Whether to start a cell with an upper cased word. expressionReplacerBoolean optional
Whether to enable the automatic replacement of expressions (see presetCorrections).wordStartCapsLockBoolean optional
Whether to correct two upper cased letters at the beginnings of words. customCorrectionsArray.<Object> optional
An array of custom correction objects. Properties
Name Type Argument Description expressionString optional
The expression to replace. languageString optional
The language in which the expression should be replaced. Use "" for any language. replacementString optional
The replacement value. spellchecker-dictionary-personalObject optional
The personal dictionary for learned words. Properties
Name Type Argument Description $LANG_CODEArray.<String> optional
An array of words for the given language ($LANG_CODE could be e.g. "en-US"). Example:
var options = { "userpreferences": { "autocorrect": { "sentenceStartUpperCase":true, "cellStartUpperCase":true, "wordStartCapsLock":true, "autoHyperlinking":false, "expressionReplacer":true, "customCorrections": [ { "expression": "nd", "language": "", "replacement": "Nimbudocs Editor" }, { "expression": "pr", "language": "", "replacement": "PDFreactor" } ] }, "spellchecker-dictionary-personal": { "en-US": ["Nimbudocs", "PDFreactor", "JSON"] }, "loadurldialog": "http://www.nimbudocs.com" } } - widgetsObject
-
The widgets used in the editor.
Type:
- Object
- See:
- widthString|Number
-
The width either as a string including a unit or as a number. If set as a number, the value will be applied in pixels.
Type:
- String | Number
- Default Value:
null
- See:
Callbacks
- oncaretdocumentboundary :function
-
The function called when the caret reaches the document start or end.
Type:
- function
Passed Arguments:
Name Type Description documentEndBoolean Whether the event was triggered because the caret reached the end of the document. Example:
var options = { oncaretdocumentboundary: function(documentEnd) { if(!documentEnd) { // Caret reached document start. } else { // Caret reached document end. } } }; - onconnectionstatechange :function
-
The function called when the connection state of the client changes.
Type:
- function
Passed Arguments:
Name Type Description stateObjectObject The stateObject containing information about the connection state. Properties
Name Type Description connectedBoolean Whether the client is connected or not. statusString Additional information about the state, can be "connected", "disconnected", "hibernate", "wakeup", "editor-session-server-hibernate" or "editor-session-server-resumed". The connected attribute is always true in case of "hibernate" and "wakeup". This:
- oncontentchange :function
-
The function called when the content of a document or the document itself changes.
Type:
- function
Passed Arguments:
Name Type Description changeObjectObject An object containin information about the change Properties
Name Type Description documentLoadedBoolean Whether the change was caused by loading a (new) document. contentChangedBoolean Whether there was a change in content. This:
- ondocumentloaded :function
-
The function called when a document is loaded.
Type:
- function
This:
- onerror :function
-
The function called when an error occurs in the editor.
Type:
- function
Passed Arguments:
Name Type Description errorObjectObject The errorObject containing information about the error. Properties
Name Type Description locationString The location where the error occurred. responseTextString The error message. statusCodeString The status code. statusTextString The status message. This:
Example:
var options = { onerror: function(errorObject) { console.log("Error at: " + errorObject.location); console.log("Message: " + errorObject.responseText); console.log("Code " + errorObject.statusCode + ": " + errorObject.statusText); } }; - onfontfamilyupdate :function
-
The function called when the list of available font families changes.
Type:
- function
Passed Arguments:
Name Type Description fontFamiliesArray The fontFamilies array contains a list of all available font families. The default order of this array is represented by the order of the style sheets containing @font-face rules and the respective order of the rules themselves. The default callback sorts the array alphabetically ascending. In the callback function you can sort the array as needed and then return the sorted array. This:
- onleave :function
-
The function called before the editor is left.
Type:
- function
This:
- onnotsupported :function
-
The function called if the browser is not supported and the editor could not be created.
Type:
- function
- onprepareservershutdown :function
-
The function called when the server is prepared to shutdown. Use this to save the content of the editor and notify the user.
Type:
- function
This:
- onready :function
-
The function called when the editor has finished initializing.
Type:
- function
Passed Arguments:
Name Type Description editorNimbudocsEditor The editor API object. This:
Example:
var options = { onready: function(editor) { window.editor = editor; editor.addEditorStyleSheet({url: "styleTemplates.css"}); } }; - onrecover :function
-
The function called when an internal server problem occurred which was handled by the server side recovery mechanism.
Type:
- function
Passed Arguments:
Name Type Description recoverObjectArrayArray An array containing one or more recoverObjects. Properties
Name Type Description recoverObjectObject An recoverObject containing information about the problem recoverObject.undoStepTextString A description of which action was undone to recover the editor. recoverObject.errorMessageString A descriptive message of the error causing the recovery mechanism to step in. recoverObject.stacktraceString The stack trace of the error. This:
Example:
var options = { onrecover: function(recoverObject) { console.log("Error Message: " + recoverObject.errorMessage); console.log("Undo of: " + recoverObject.undoStepText); } }; - onselectionchange :function
-
The function called when the selection has been changed.
Type:
- function
Passed Arguments:
Name Type Description selectionTextString The plain text of the current selection. Example:
var options = { onselectionchange: function(selectedText) { } }; - onserveroffline :function
-
The function called when the server is not available.
Type:
- function
This:
- onsessionlimitreached :function
-
The function called when the concurrent editor session limit was reached.
Type:
- function
Passed Arguments:
Name Type Description sessionLimitObjectObject The sessionLimitObject. Properties
Name Type Description messageString A message containing a description. retryFunction A function to retry starting the editor. This:
Example:
var options = { onsessionlimitreached: function(sessionLimitObject) { console.log("Message: " + sessionLimitObject.message); // Retry to start the editor sessionLimitObject.retry(); } }; - onuserpreferenceschange :function
-
The function called when the user preferences change.
Type:
- function
Passed Arguments:
Name Type Description upObject The userpreferences as JSON This: