jakiestfu/Medium.js

Uncaught TypeError: Cannot read property 'rangePrototype' of null

amitrai99 opened this issue · 2 comments

I am getting an exception when trying to invoke medium.

    new Medium({
      element: document.getElementById('main_middle')
    });
Uncaught TypeError: Cannot read property 'rangePrototype' of null

At the following line of Medium.js code:

rangy.rangePrototype.insertNodeAtEnd = function (node) {

Can anyone help me with this?

Figured that I was missing a req library!

+1