integration wip: sourceEditor module stops keeping its template in the hosting page...
[fnpeditor.git] / src / editor / modules / sourceEditor / sourceEditor.js
index a2ec127..c805b1b 100644 (file)
@@ -1,10 +1,10 @@
-define(['libs/jquery'], function($) {
+define(['libs/jquery', 'libs/text!./template.html'], function($, template) {
 
 'use strict';
 
 return function(sandbox) {
 
-    var view = $(sandbox.getTemplate('main')()),
+    var view = $(template),
         documentIsDirty = true,
         documentEditedHere = false,
         wlxmlDocument;