mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-20 13:42:32 -05:00
14 lines
255 B
JavaScript
14 lines
255 B
JavaScript
|
/*global top, win, doc, Squire */
|
||
|
|
||
|
if ( top !== win ) {
|
||
|
win.editor = new Squire( doc );
|
||
|
if ( win.onEditorLoad ) {
|
||
|
win.onEditorLoad( win.editor );
|
||
|
win.onEditorLoad = null;
|
||
|
}
|
||
|
} else {
|
||
|
win.Squire = Squire;
|
||
|
}
|
||
|
|
||
|
}( document ) );
|