Understanding plugins


#1

I was going to add a text editor. I found one called hallo.js and also found a package for it:
https://atmospherejs.com/matteodem/hallo

After installing this package I was not able to call it in the console directly using:

$('.response').hallo({
  plugins: {
    'halloformat': {}
  }
});

but I’m unsure if I’m missing something obvious here. How do I work with files inside installed package?


#2

It should be that simple. Are you getting a particular error message?


#3

So I tried it in a new install of meteor, and then it works. But in the new install I do get an error and a warning from rangy.js

Browser Console
’Range.detach’ is now a no-op, as per DOM (http://dom.spec.whatwg.org/#dom-range-detach).
mrt_rangy.js?111d0c6aa2c9e9b18db295a9ce6eb2d0e24b2fba:51 Discontiguous selection is not supported.

So I think that the package mrt:rangy, that is used by matteodem:hallo might be outdated, since in atmospherejs.com there is another package for rangy maxharris9:rangy, which has more installs.

So maybe I should change this library out? Tough, can I uninstall a sub-package of a package and replace it?