News for hackers. Stuff that matters.
Re:Substance: a JavaScript library for web-based content edi... by david-given on Wednesday March 16, 2016 @06:05PM (#11301042)
Huh. I have actually been looking for precisely this --- I was going to go with the Guardian's Scribe, but I might investigate this instead.

Unfortunately it looks like it's JQuery and AMD modules, and I'm a Polymer and browserify shop, so it may just not be feasible. [sad face]

Re:Substance: a JavaScript library for web-based content edi... by yuchi on Wednesday March 16, 2016 @06:39PM (#11301227)
Old (veeeeeeery old) substance dev here.

They are not AMD based (have a look here indeed https://github.com/substance/substance/blob/master/browser.j...) and about jQuery I’m pretty sure you can wrap it up as a Web Component pretty easily.

Re:Substance: a JavaScript library for web-based content edi... by david-given on Wednesday March 16, 2016 @07:05PM (#11301371)
I've never actually used browser-side require, so have no idea how it works --- I just saw a boot.amd.js file.

Also, did I say browserify? I meant vulcanize.

Re:Substance: a JavaScript library for web-based content edi... by _mql on Thursday March 17, 2016 @03:56AM (#11303049)
Hi! To clarify: Substance is compatible with Browserify and Webpack. It runs in Node and in the browser. It doesn't come as one big module, instead it lets you deep require individual files so your bundle only includes what you explicitly required. e.g. require('substance/collab/CollabServer').

I've deleted the amd.boot.js file as it's no longer supported.