From: Aleksander Ɓukasz Date: Tue, 10 Dec 2013 21:47:40 +0000 (+0100) Subject: integration wip: sourceEditor module stops keeping its template in the hosting page... X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/811645a7d810c562f38edc705affff6822ebbdc9 integration wip: sourceEditor module stops keeping its template in the hosting page markup --- diff --git a/src/editor/modules/sourceEditor/sourceEditor.js b/src/editor/modules/sourceEditor/sourceEditor.js index a2ec127..c805b1b 100644 --- a/src/editor/modules/sourceEditor/sourceEditor.js +++ b/src/editor/modules/sourceEditor/sourceEditor.js @@ -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; diff --git a/src/editor/modules/sourceEditor/template.html b/src/editor/modules/sourceEditor/template.html new file mode 100644 index 0000000..f7ffeed --- /dev/null +++ b/src/editor/modules/sourceEditor/template.html @@ -0,0 +1,6 @@ +
+
+
+
+
+
\ No newline at end of file