mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Merge pull request #208 from eightyeight/patch-2
Make the existence of the NPM package more obvious
This commit is contained in:
commit
3428d61331
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