X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1fee1a1755e0b9ce88e1f9df5016f44b9982f368..bedc5daf8a42c50c84b8c43b5924c10d07ed0b3a:/modules/rng/rng.js?ds=sidebyside diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 2078494..d773c30 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -256,14 +256,8 @@ return function(sandbox) { ready: function() { views.visualEditing.setView('toolbar', sandbox.getModule('documentToolbar').getView()); }, - toggleGrid: function(toggle) { - sandbox.getModule('documentCanvas').toggleGrid(toggle); - }, - newNodeRequested: function(wlxmlTag, wlxmlClass) { - sandbox.getModule('documentCanvas').insertNewNode(wlxmlTag, wlxmlClass); - }, - command: function(cmd, meta) { - sandbox.getModule('documentCanvas').command(cmd, meta); + command: function(cmd, params) { + sandbox.getModule('documentCanvas').command(cmd, params); } };