X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/93a6d4524f7101fa0f97148adf379a28f4545444..c601e8aff30efc0b4fd69765d5671e3ee88c4bf4:/modules/documentCanvas/commands.js?ds=inline diff --git a/modules/documentCanvas/commands.js b/modules/documentCanvas/commands.js index 0e48de1..b08348e 100644 --- a/modules/documentCanvas/commands.js +++ b/modules/documentCanvas/commands.js @@ -99,6 +99,16 @@ commands.register('newNodeRequested', function(canvas, params) { } }); +commands.register('footnote', function(canvas, params) { + var position = canvas.getCursor().getPosition(); + + var asideElement = position.element.divide({tag: 'aside', klass: 'footnote', offset: position.offset}); + + asideElement.append({text: ''}); + asideElement.toggle(true); + canvas.setCurrentElement(asideElement); +}); + return { run: function(name, params, canvas) {