mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 05:00:13 -05:00
Document must wait for iframe onload before instantiating
Resolves #106
This commit is contained in:
parent
4f010a5de0
commit
32d56823ce
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ Installation and usage
|
|||
Advanced usage
|
||||
--------------
|
||||
|
||||
If you load the library into a top-level document (rather than an iframe), it will not turn the page into an editable document, but will instead add a function named `Squire` to the global scope. Call `new Squire( document )`, with the `document` from an iframe to instantiate multiple rich text areas on the same page efficiently.
|
||||
If you load the library into a top-level document (rather than an iframe), it will not turn the page into an editable document, but will instead add a function named `Squire` to the global scope. 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