Returns the Window of the Editor's editable area element.

If the editor is initialized from a textarea, this will be the window of the IFRAME that holds the editable area.
If initialized from another element, the Editor will be rendered in inline mode and this will point to the same page's window.

<textarea id="editor"></textarea>

<script type="text/javascript">
    jQuery(function ($) {

        var win = $("#editor").swidget().getWin();
        // do something with win...