youtube videos
[fnpeditor.git] / src / editor / plugins / core / canvasElements.js
index addaeae..ba72c03 100644 (file)
@@ -1,9 +1,13 @@
 define(function(require) {
     
 'use strict';
-var $ = require('libs/jquery'),
-    genericElement = require('modules/documentCanvas/canvas/genericElement'); // TODO: This should be accessible via plugin infrastructure
 
+var $ = require('libs/jquery'),
+    genericElement = require('modules/documentCanvas/canvas/genericElement'), // TODO: This should be accessible via plugin infrastructure
+    linkElement = require('./links/linkElement'),
+    imgElement = require('./img/imgElement'),
+    videoElement = require('./video/videoElement')
+    ;
 
 var widgets = {
     footnoteHandler: function(clickHandler) {
@@ -110,8 +114,11 @@ $.extend(footnote, {
 
 
 return [
-    {tag: 'aside', klass: 'comment', prototype: comment},
-    {tag: 'aside', klass: 'footnote', prototype: footnote}
+    {tag: 'aside', klass: 'comment', prototype: null},
+    {tag: 'aside', klass: 'footnote', prototype: footnote},
+    {tag: 'span', klass: 'link', prototype: linkElement},
+    {tag: 'div', klass: 'img', prototype: imgElement},
+    {tag: 'div', klass: 'video', prototype: videoElement}
 ];