X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d8c1b8422ef879e737e05f60f7ac401af31b6049..695d1a0067346347cf36bedab8fdce7ae39d5270:/src/editor/plugins/core/canvasElements.js diff --git a/src/editor/plugins/core/canvasElements.js b/src/editor/plugins/core/canvasElements.js index 0d7cffa..ab3332e 100644 --- a/src/editor/plugins/core/canvasElements.js +++ b/src/editor/plugins/core/canvasElements.js @@ -4,7 +4,9 @@ define(function(require) { 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') + ; var widgets = { footnoteHandler: function(clickHandler) { @@ -113,7 +115,8 @@ $.extend(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} ];