From 046579fe5fb4adfd9b4525be39016be6d4bd7990 Mon Sep 17 00:00:00 2001 From: Daniel Buckmaster Date: Wed, 29 Jun 2016 14:21:02 +1000 Subject: [PATCH] Add link to NPM package in readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2e7db8f..047e635 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,8 @@ Advanced usage If you load the library into a top-level document (rather than an iframe), or load it in an iframe without the `data-squireinit="true"` attribute on its `` element, it will not turn the page into an editable document, but will instead add a constructor named `Squire` to the global scope. +You can also require the NPM package [squire-rte](https://www.npmjs.com/package/squire-rte) to import `Squire` in a modular program without adding names to the global namespace. + Call `new Squire( document )`, with the `document` from an iframe to instantiate multiple rich text areas on the same page efficiently. Note, for compatibility with all browsers (particularly Firefox), you MUST wait for the iframe's `onload` event to fire before instantiating Squire. ### Setting the default block style