白俊遥 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:

Other documentation

Other pages within the documentation are at various stages of completion and will be linked from this page when completed.