integration wip: sourceEditor module stops keeping its template in the hosting page...
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 10 Dec 2013 21:47:40 +0000 (22:47 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 15 Dec 2013 21:32:50 +0000 (22:32 +0100)
src/editor/modules/sourceEditor/sourceEditor.js
src/editor/modules/sourceEditor/template.html [new file with mode: 0644]

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;
diff --git a/src/editor/modules/sourceEditor/template.html b/src/editor/modules/sourceEditor/template.html
new file mode 100644 (file)
index 0000000..f7ffeed
--- /dev/null
@@ -0,0 +1,6 @@
+<div id="rng-sourceEditor">
+    <div id="rng-sourceEditor-editorWrapper">
+        <div id="rng-sourceEditor-editor" class="rng-editorAreaWrapper">
+        </div>
+    </div>
+</div>
\ No newline at end of file