fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update document summary on save/revert
[fnpeditor.git]
/
src
/
editor
/
plugins
/
core
/
canvasElements.js
diff --git
a/src/editor/plugins/core/canvasElements.js
b/src/editor/plugins/core/canvasElements.js
index
0d7cffa
..
ba72c03
100644
(file)
--- a/
src/editor/plugins/core/canvasElements.js
+++ b/
src/editor/plugins/core/canvasElements.js
@@
-4,7
+4,10
@@
define(function(require) {
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');
+ linkElement = require('./links/linkElement'),
+ imgElement = require('./img/imgElement'),
+ videoElement = require('./video/videoElement')
+ ;
var widgets = {
footnoteHandler: function(clickHandler) {
var widgets = {
footnoteHandler: function(clickHandler) {
@@
-113,7
+116,9
@@
$.extend(footnote, {
return [
{tag: 'aside', klass: 'comment', prototype: null},
{tag: 'aside', klass: 'footnote', prototype: footnote},
return [
{tag: 'aside', klass: 'comment', prototype: null},
{tag: 'aside', klass: 'footnote', prototype: footnote},
- {tag: 'span', klass: 'link', prototype: linkElement}
+ {tag: 'span', klass: 'link', prototype: linkElement},
+ {tag: 'div', klass: 'img', prototype: imgElement},
+ {tag: 'div', klass: 'video', prototype: videoElement}
];
];