Web Sketchpad Document API
Version 4.8.0
Web Sketchpad Document API
Contents
Introduction
The Document API provides methods to manipulate and interrogate an instance of a Web Sketchpad document. The Web Sketchpad document is provided in many Document Event callbacks.
It is also accessible via the DOM:
var doc = jQuery(selector).data("document");
Document API
- sQuery
- The sQuery interface for the current page of the web sketchpad document.
- resetDocument()
- Reset the document to the initial state passed in at document creation. This includes changing the page to the initial page.
- resetActivePage()
- Reset the currently active page to the initial state passed in at document creation.