flaudre
flaudre

Reputation: 2298

How to use node and quill?

I want to try quill in my express.js app. So, I can install it using

npm install quill

but how do I actually use it with node?

I don't really understand why this is a node package since it basically only consists of a .css and a .js file and can be included directly inside the template which also makes most sense to me, because that's where the rich text editor takes effect.

Upvotes: 4

Views: 5543

Answers (1)

Lumination
Lumination

Reputation: 47

I've seen a thread where one of the creators of quill (jhchen) was asked just that. I hope that helps someone.

Question:

Then what is the npm install command for? Pretty much every application people build nowadays uses Browserify or Webpack to build things before the browser renders it, and if you can't even require() it, then how can you use it?

Answer:

You can absolutely require Quill for the purposes of building with Webpack or Browserify. You just can't run Quill in the Node.js REPL.

source: https://github.com/quilljs/quill/issues/1194

Upvotes: 1

Related Questions