X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/2e14f0181735b7acd0da023eb4c9524b75a45b56..d8c1b8422ef879e737e05f60f7ac401af31b6049:/src/editor/plugins/core/canvasElements.js diff --git a/src/editor/plugins/core/canvasElements.js b/src/editor/plugins/core/canvasElements.js index addaeae..0d7cffa 100644 --- a/src/editor/plugins/core/canvasElements.js +++ b/src/editor/plugins/core/canvasElements.js @@ -1,9 +1,10 @@ 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'); var widgets = { footnoteHandler: function(clickHandler) { @@ -110,8 +111,9 @@ $.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} ];