Cookie Property

Description

This property stipulates the name of the cookie to be used by Ephox EditLive! for XML.

Syntax

JavaScript

setCookie(strCookie);

Parameters

strCookie

A string value indicating the name of the Cookie. The value should be equivalent to a JavaScript value, for example "document.cookie".

Examples

Example 16.13. Cookie Property Example Scripting

The following code would set the Cookie property to "document.cookie".

JavaScript

editlivejs.setCookie(document.cookie);

Remarks

The value used to set the Cookie property should be valid JavaScript. It is recommended that the value of document.cookie is used.

The value passed to this function will be evaluated as JavaScript. Thus, using the value of document.cookie with this function will result in the cookie for the HTML page being used by EditLive! for XML.