<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8"/>
    <script type="text/javascript" src="/build/standalone/lib/requirejs/require.js"></script>
    <script type="text/javascript" src="/config/requirejs-config-dev.js"></script>
    <link href="/build/standalone/lib/wed/wed.css" type="text/css" media="screen" rel="stylesheet" />
  </head>
  <body>
    <div id="widget"></div>
    <script>
    require(["wed/wed", "jquery"], function (wed, $) {
        $(function () {
            wed.editor($("#widget").get(0));
        });
    });
    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8"/>
    <script type="text/javascript" src="/build/standalone/lib/requirejs/require.js"></script>
    <script type="text/javascript" src="/config/requirejs-config-dev.js"></script>
    <link href="/build/standalone/lib/wed/wed.css" type="text/css" media="screen" rel="stylesheet" />
  </head>
  <body>
    <div id="widget"></div>
    <script>
    require(["wed/wed", "jquery"], function (wed, $) {
        $(function () {
            window.wed_editor = wed.editor($("#widget").get(0));
        });
    });
    </script>
  </body>
</html>

Put a variable holding the editor onto window.
Put a variable holding the editor onto window.
