Skip to content

Commit

Permalink
Update version number and README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed May 10, 2015
1 parent ed8f997 commit 2c4dd69
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 30 deletions.
10 changes: 4 additions & 6 deletions README.md
Expand Up @@ -3,24 +3,22 @@ Rangy


A cross-browser JavaScript range and selection library. 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). The latest source code and releases are on [GitHub](../../releases).


## Bower ## 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: There is now an official Rangy package for Bower with Rangy 1.2 and 1.3 versions, called `rangy`.

`bower install rangy#1.3`


## AMD ## AMD


Rangy now has AMD support. Rangy 1.3 has AMD support.


## NPM ## NPM


There is an official Rangy module on NPM called [`rangy`](https://www.npmjs.org/package/rangy). There is an official Rangy module on NPM called [`rangy`](https://www.npmjs.org/package/rangy).


## Documentation ## 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).
14 changes: 5 additions & 9 deletions demos/events.html
Expand Up @@ -42,17 +42,17 @@
<script type="text/javascript"> <script type="text/javascript">
var selRanges = null; var selRanges = null;
var mouseEvents = ["mouseover", "mouseout", "mousedown", "mousemove", "mouseup", "click"]; var mouseEvents = ["mouseover", "mouseout", "mousedown", "mousemove", "mouseup", "click"];

function forEach(arr, fn) { function forEach(arr, fn) {
for (var i = 0, len = arr.length; i < len; ++i) { for (var i = 0, len = arr.length; i < len; ++i) {
fn(arr[i], i); fn(arr[i], i);
} }
} }

function gEBI(id) { function gEBI(id) {
return document.getElementById(id); return document.getElementById(id);
} }

function init() { function init() {
var eventLog = gEBI("eventLog"); var eventLog = gEBI("eventLog");
var eventCount = 0; var eventCount = 0;
Expand All @@ -69,7 +69,7 @@
range.detach(); range.detach();
}); });
} }

var sel = rangy.getSelection(); var sel = rangy.getSelection();
if (sel.isCollapsed) { if (sel.isCollapsed) {
selRanges = null; selRanges = null;
Expand Down Expand Up @@ -101,14 +101,10 @@ <h3>Event log</h3>
<div id="content"> <div id="content">
<h1>Rangy Range Events Demo</h1> <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"> <p id="intro">
Rangy's <a href="https://code.google.com/p/rangy/wiki/TextRangeModule">Events module</a> provides mouse and 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 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>
<p> <p>
<b>Association football</b> is a sport played between two teams. It is usually called <b>football</b>, but in <b>Association football</b> is a sport played between two teams. It is usually called <b>football</b>, but in
Expand Down
3 changes: 0 additions & 3 deletions demos/highlighter.html
Expand Up @@ -107,9 +107,6 @@ <h3>Preserving highlights between page requests</h3>


<div id="content"> <div id="content">
<h1>Rangy Highlighter Module Demo</h1> <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"> <p id="intro">
Please use your mouse and/or keyboard to make selections from the sample content below and use the buttons 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. on the left hand size to create and remove highlights.
Expand Down
11 changes: 4 additions & 7 deletions demos/scopedhighlights.html
Expand Up @@ -16,11 +16,11 @@
var highlighter; var highlighter;


var initialDoc; var initialDoc;

function randomizeQuotes() { function randomizeQuotes() {
var quotesUl = document.getElementById("quotes"); var quotesUl = document.getElementById("quotes");
var childNodeCount = quotesUl.childNodes.length; var childNodeCount = quotesUl.childNodes.length;

for (var i = 0, random; i < 10; ++i) { for (var i = 0, random; i < 10; ++i) {
random = Math.floor(Math.random() * childNodeCount); random = Math.floor(Math.random() * childNodeCount);
quotesUl.appendChild(quotesUl.childNodes[random]); quotesUl.appendChild(quotesUl.childNodes[random]);
Expand All @@ -43,7 +43,7 @@
function removeHighlightFromSelectedText() { function removeHighlightFromSelectedText() {
highlighter.unhighlightSelection(); highlighter.unhighlightSelection();
} }

function getContainingLi(node) { function getContainingLi(node) {
while (node) { while (node) {
if (node.nodeType == 1 && node.nodeName == "LI") { if (node.nodeType == 1 && node.nodeName == "LI") {
Expand All @@ -63,7 +63,7 @@
var containerLi = getContainingLi(range.commonAncestorContainer); var containerLi = getContainingLi(range.commonAncestorContainer);
if (containerLi) { if (containerLi) {
highlighter.highlightSelection("highlight", selection, containerLi.id); highlighter.highlightSelection("highlight", selection, containerLi.id);
} }
} }
} }


Expand Down Expand Up @@ -93,9 +93,6 @@ <h3>Preserving highlights between page requests</h3>


<div id="content"> <div id="content">
<h1>Highlighter module scoped highlights demo</h1> <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"> <p id="intro">
Please use your mouse and/or keyboard to make selections from the sample quotes below and use the buttons 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. on the left hand size to create and remove highlights.
Expand Down
4 changes: 0 additions & 4 deletions demos/textrange.html
Expand Up @@ -239,10 +239,6 @@ <h3>Find</h3>
<div id="content"> <div id="content">
<h1>Rangy TextRange Demo</h1> <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"> <p id="intro">
Rangy's <a href="https://code.google.com/p/rangy/wiki/TextRangeModule">TextRange module</a> provides various 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. methods for navigating the visible text on a page by character or word.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{ {
"name": "rangy", "name": "rangy",
"description": "A cross-browser DOM range and selection library", "description": "A cross-browser DOM range and selection library",
"version": "1.3.0-beta.2", "version": "1.3.0",
"author": { "author": {
"name": "Tim Down", "name": "Tim Down",
"email": "tim@timdown.co.uk", "email": "tim@timdown.co.uk",
Expand Down

0 comments on commit 2c4dd69

Please sign in to comment.