X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a920c78116d0177f440c98fb4a067437fea5f27c..e3d081dda1fe6502f0809ddf602d2c0bdf1f24ae:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index 032fea4..4160ad9 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -26,17 +26,8 @@ return function(sandbox) { sandbox.getModule('documentCanvas').jumpToElement(element); }, refreshCanvasSelection: function(selection) { - var fragment = selection.toDocumentFragment(), - elementParent; - + var fragment = selection.toDocumentFragment(); sandbox.getModule('documentToolbar').setDocumentFragment(fragment); - - if(fragment && fragment.node) { - elementParent = fragment.node.getNearestElementNode(); - sandbox.getModule('nodeBreadCrumbs').setNodeElement(elementParent); - } else { - sandbox.getModule('nodeBreadCrumbs').setNodeElement(null); - } }, }; @@ -197,15 +188,6 @@ return function(sandbox) { } }; - eventHandlers.nodeBreadCrumbs = { - ready: function() { - views.visualEditing.setView('statusBar', sandbox.getModule('nodeBreadCrumbs').getView()); - }, - elementClicked: function(element) { - commands.jumpToDocumentElement(element); - } - }; - eventHandlers.documentHistory = { ready: function() { sandbox.getModule('documentHistory').addHistory(sandbox.getModule('data').getHistory());