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);
- }
},
};
}
};
- 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());