| Namespace | tinymce.plugins |
| Class | AutoSave |
| Method | Defined By |
|---|---|
|
getExpDate():String
Returns an expiration date UTC string.
|
AutoSave |
|
getInfo():Object
Returns information about the plugin as a name/value array.
|
AutoSave |
|
hasDraft():boolean
This method will return true/false if there is a local storage draft available.
|
AutoSave |
|
Initializes the plugin, this will be executed after the plugin has been created.
|
AutoSave |
|
removeDraft():void
Removes the currently stored draft.
|
AutoSave |
|
restoreDraft():void
This method will restore the contents from the storage engine back to the editor.
|
AutoSave |
|
setupStorage():void
This method will setup the storage engine.
|
AutoSave |
|
storeDraft():void
This method will store the current contents in the the storage engine.
|
AutoSave |
| Event | Defined By |
|---|---|
|
onRemoveDraft(sender:AutoSave, draft:Object)
This event gets fired when a draft removed/expired.
|
AutoSave |
|
onStoreDraft(sender:AutoSave, draft:Object)
This event gets fired when a draft is stored to local storage.
|
AutoSave |
|
onStoreDraft(sender:AutoSave, draft:Object)
This event gets fired when a draft is restored from local storage.
|
AutoSave |
public
function getExpDate():String
public
function getInfo():Object
public
function hasDraft():boolean
public
function init(ed:Editor, url:string):void
| ed:Editor | Editor instance that the plugin is initialized in. |
| url:string | Absolute URL to where the plugin is located. |
public
function removeDraft():void
public
function restoreDraft():void
public
function setupStorage():void
public
function storeDraft():void
public
event onRemoveDraft(sender:AutoSave, draft:Object)
| sender:AutoSave | Plugin instance sending the event. |
| draft:Object | Draft object containing the HTML contents of the editor. |