mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Add link to NPM package in readme
This commit is contained in:
parent
afb49532de
commit
046579fe5f
1 changed files with 2 additions and 0 deletions
|
@ -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 `<html>` 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
|
||||
|
|
Loading…
Reference in a new issue