diff --git a/src/commands/view/ExportTemplate.js b/src/commands/view/ExportTemplate.js index 33d36522b..fdf7ebffe 100644 --- a/src/commands/view/ExportTemplate.js +++ b/src/commands/view/ExportTemplate.js @@ -5,12 +5,12 @@ define(function() { * */ return { - run: function(em, sender){ + run: function(editor, sender){ this.sender = sender; - this.components = em.get('Canvas').getWrapper().get('components'); - this.modal = em.get('Modal') || null; - this.cm = em.get('CodeManager') || null; - this.cssc = em.get('CssComposer') || null; + this.components = editor.Canvas.getWrapper().get('components'); + this.modal = editor.Dialog || null; + this.cm = editor.CodeManager || null; + this.cssc = editor.CssComposer || null; this.enable(); },