Permalink
Browse files

Update version number and README.

  • Loading branch information...
timdown committed May 10, 2015
1 parent ed8f997 commit 2c4dd692cf2321ff97fe35a3becadba56b59ba2a
Showing with 14 additions and 30 deletions.
  1. +4 −6 README.md
  2. +5 −9 demos/events.html
  3. +0 −3 demos/highlighter.html
  4. +4 −7 demos/scopedhighlights.html
  5. +0 −4 demos/textrange.html
  6. +1 −1 package.json
View
@@ -3,24 +3,22 @@ Rangy
A cross-browser JavaScript range and selection library.
The current development version is version 1.3. It's officially in beta.
The current version is version 1.3.0.
The latest source code and releases are on [GitHub](../../releases).
## Bower
There is now an official Rangy package for Bower with Rangy 1.2 and 1.3 versions, called `rangy`. By default, Bower installs Rangy 1.2.3, which is the latest full release. However, you can install the latest 1.3 beta version instead with the following command:
`bower install rangy#1.3`
There is now an official Rangy package for Bower with Rangy 1.2 and 1.3 versions, called `rangy`.
## AMD
Rangy now has AMD support.
Rangy 1.3 has AMD support.
## NPM
There is an official Rangy module on NPM called [`rangy`](https://www.npmjs.org/package/rangy).
## Documentation
View [the documentation in the wiki](https://github.com/timdown/rangy/wiki).
Documentation is in [the GitHub wiki](https://github.com/timdown/rangy/wiki).
View
@@ -42,17 +42,17 @@
<script type="text/javascript">
var selRanges = null;
var mouseEvents = ["mouseover", "mouseout", "mousedown", "mousemove", "mouseup", "click"];
function forEach(arr, fn) {
for (var i = 0, len = arr.length; i < len; ++i) {
fn(arr[i], i);
}
}
function gEBI(id) {
return document.getElementById(id);
}
function init() {
var eventLog = gEBI("eventLog");
var eventCount = 0;
@@ -69,7 +69,7 @@
range.detach();
});
}
var sel = rangy.getSelection();
if (sel.isCollapsed) {
selRanges = null;
@@ -101,14 +101,10 @@ <h3>Event log</h3>
<div id="content">
<h1>Rangy Range Events Demo</h1>
<p class="warning">
This demo is for Rangy 1.3, which has not yet been fully released.
</p>
<p id="intro">
Rangy's <a href="https://code.google.com/p/rangy/wiki/TextRangeModule">Events module</a> provides mouse and
touch (NOT YET IMPLEMENTED) events on Ranges. Please use your mouse to make a selection in the sample
content below and hover your mouse over the selection. Events are logged in the text box on the left.
content below and hover your mouse over the selection. Events are logged in the text box on the left.
</p>
<p>
<b>Association football</b> is a sport played between two teams. It is usually called <b>football</b>, but in
View
@@ -107,9 +107,6 @@ <h3>Preserving highlights between page requests</h3>
<div id="content">
<h1>Rangy Highlighter Module Demo</h1>
<p class="warning">
This demo is for Rangy 1.3, which has not yet been fully released.
</p>
<p id="intro">
Please use your mouse and/or keyboard to make selections from the sample content below and use the buttons
on the left hand size to create and remove highlights.
@@ -16,11 +16,11 @@
var highlighter;
var initialDoc;
function randomizeQuotes() {
var quotesUl = document.getElementById("quotes");
var childNodeCount = quotesUl.childNodes.length;
for (var i = 0, random; i < 10; ++i) {
random = Math.floor(Math.random() * childNodeCount);
quotesUl.appendChild(quotesUl.childNodes[random]);
@@ -43,7 +43,7 @@
function removeHighlightFromSelectedText() {
highlighter.unhighlightSelection();
}
function getContainingLi(node) {
while (node) {
if (node.nodeType == 1 && node.nodeName == "LI") {
@@ -63,7 +63,7 @@
var containerLi = getContainingLi(range.commonAncestorContainer);
if (containerLi) {
highlighter.highlightSelection("highlight", selection, containerLi.id);
}
}
}
}
@@ -93,9 +93,6 @@ <h3>Preserving highlights between page requests</h3>
<div id="content">
<h1>Highlighter module scoped highlights demo</h1>
<p class="warning">
This demo is for Rangy 1.3, which has not yet been fully released.
</p>
<p id="intro">
Please use your mouse and/or keyboard to make selections from the sample quotes below and use the buttons
on the left hand size to create and remove highlights.
View
@@ -239,10 +239,6 @@ <h3>Find</h3>
<div id="content">
<h1>Rangy TextRange Demo</h1>
<p class="warning">
This demo is for Rangy 1.3, which has not yet been fully released.
</p>
<p id="intro">
Rangy's <a href="https://code.google.com/p/rangy/wiki/TextRangeModule">TextRange module</a> provides various
methods for navigating the visible text on a page by character or word.
View
@@ -1,7 +1,7 @@
{
"name": "rangy",
"description": "A cross-browser DOM range and selection library",
"version": "1.3.0-beta.2",
"version": "1.3.0",
"author": {
"name": "Tim Down",
"email": "tim@timdown.co.uk",

0 comments on commit 2c4dd69

Please sign in to comment.