match exercise stub
[fnpeditor.git] / src / editor / plugins / core / edumed / match / element.js
diff --git a/src/editor/plugins/core/edumed/match/element.js b/src/editor/plugins/core/edumed/match/element.js
new file mode 100644 (file)
index 0000000..dda31ba
--- /dev/null
@@ -0,0 +1,29 @@
+define(function(require) {
+    
+'use strict';
+
+
+var $ = require('libs/jquery'),
+    _ = require('libs/underscore'),
+    elementBase = require('plugins/core/edumed/elementBase'),
+    viewTemplate = require('libs/text!./view.html');
+
+var MatchExerciseElement = Object.create(elementBase);
+_.extend(MatchExerciseElement, {
+    init: function() {
+        elementBase.init.call(this);
+        var view  = $(_.template(viewTemplate)());
+        this._container().append(view);
+
+        this.createContainer(this.wlxmlNode.contents(), {
+            resetBackground: true,
+            manages: function() {
+                return true;
+            }
+        });
+    }
+});
+
+return {tag: 'div', klass: 'exercise.match', prototype: MatchExerciseElement};
+
+});