X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0bea7025f60aa5cc2ed89eed72da0d616f3574ef..39625b37b8cbd892677f7e8bf3ab5f8b065a1fd0:/src/editor/plugins/core/canvasElements.js diff --git a/src/editor/plugins/core/canvasElements.js b/src/editor/plugins/core/canvasElements.js index 37eefb8..b0f51b6 100644 --- a/src/editor/plugins/core/canvasElements.js +++ b/src/editor/plugins/core/canvasElements.js @@ -1,6 +1,7 @@ define(function(require) { 'use strict'; +var $ = require('libs/jquery'); var widgets = { @@ -49,7 +50,7 @@ var widgets = { }); return mydom; } -} +}; var comment = { @@ -102,12 +103,12 @@ var footnote = { this.trigger('elementToggled', toggle, this.documentElement); } } -} +}; return [ - {klass: 'comment', element: comment}, - {klass: 'footnote', element: footnote} + {tag: 'aside', klass: 'comment', prototype: comment, extending: {tag: 'div'}}, + {tag: 'aside', klass: 'footnote', prototype: footnote, extending: {tag: 'aside'}} ];