mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 23:40:35 -05:00
22 lines
539 B
JavaScript
22 lines
539 B
JavaScript
/*jshint ignore:start */
|
|
|
|
if ( typeof exports === 'object' ) {
|
|
module.exports = Squire;
|
|
} else if ( typeof define === 'function' && define.amd ) {
|
|
define( function () {
|
|
return Squire;
|
|
});
|
|
} else {
|
|
win.Squire = Squire;
|
|
|
|
if ( top !== win &&
|
|
doc.documentElement.getAttribute( 'data-squireinit' ) === 'true' ) {
|
|
win.editor = new Squire( doc );
|
|
if ( win.onEditorLoad ) {
|
|
win.onEditorLoad( win.editor );
|
|
win.onEditorLoad = null;
|
|
}
|
|
}
|
|
}
|
|
|
|
}( document ) );
|