-
Notifications
You must be signed in to change notification settings - Fork 368
Home
白俊遥 edited this page Jan 26, 2018
·
9 revisions
The following are the core Rangy objects (try a live demo here):
- The main Rangy object, which acts as a namespace for Rangy functionality;
- Range, representing a portion of an HTML document and based on the DOM Level 2 Range interface;
- Selection, representing the user's selection within an HTML document.
-
DOM Utils, a collection of DOM-related helper functions used internally by Rangy but also available via
rangy.dom
.
Rangy also comes with optional modules, each of which comes in a separate .js file. Current modules are:
- Selection save and restore
- Class apply and remove to/from selection
- Selection and Range serialization
- Text-based extensions to selection and range
- Highlighter module providing an API for creating, serializing and deserializing text highlights
Other pages within the documentation are at various stages of completion and will be linked from this page when completed.