title: Hallo.js - Rangy is not defined
body: <p>I just tried to add the Hallo.js editor to my website. It kind of works, but as soon as I'm editing a text, I see the following error in Chrome and Firefox. In Opera it seems to work fine.</p>
  
  <pre><code>rangy is not defined (sel = rangy.getSelection();    Line 2674 in hallo.js)
  </code></pre>
  
  <p>You can find an example of that behaviour on JSBin: <a href="http://jsbin.com/unuces/2/" rel="nofollow">http://jsbin.com/unuces/2/</a></p>
  
  <p>In the <a href="https://github.com/bergie/hallo" rel="nofollow">documentation of hallo.js</a> there's no dependency for rangy mentioned, so I think it should not be needed. Does anyone already have experience on that one?</p>
  
  <p>Thank you for your help.</p>
  
  <p>====  <strong>Solution:</strong> ========</p>
  
  <p><strong>Rangy is not defined</strong></p>
  
  <p>This occurs when rangy is not included. For Hallojs to work rangy has to be included.</p>
  
  <p><strong>...has no method getSelected</strong></p>
  
  <p>This happens if rangy is loaded dynamically. To solve this error call rangy.init() after loading it.</p>