From 811645a7d810c562f38edc705affff6822ebbdc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 10 Dec 2013 22:47:40 +0100 Subject: [PATCH 1/1] integration wip: sourceEditor module stops keeping its template in the hosting page markup --- src/editor/modules/sourceEditor/sourceEditor.js | 4 ++-- src/editor/modules/sourceEditor/template.html | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 src/editor/modules/sourceEditor/template.html 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 -- 2.20.1