- }
- };
-
- eventHandlers.nodePane = {
- ready: function() {
- views.currentNodePaneLayout.appendView(sandbox.getModule('nodePane').getView());
- },
-
- nodeElementChange: function(attr, value) {
- sandbox.getModule('documentCanvas').modifyCurrentNodeElement(attr, value);
- }
- };
-
- eventHandlers.metadataEditor = {
- ready: function() {
- sandbox.getModule('metadataEditor').setDocument(sandbox.getModule('data').getDocument());
- views.visualEditingSidebar.addTab({icon: 'info-sign'}, 'metadataEditor', sandbox.getModule('metadataEditor').getView());
- }
- };
-
- eventHandlers.nodeFamilyTree = {
- ready: function() {
- views.currentNodePaneLayout.appendView(sandbox.getModule('nodeFamilyTree').getView());
- },
- nodeEntered: function(node) {
- commands.highlightDocumentElement(node, 'nodeFamilyTree');
- },
- nodeLeft: function(node) {
- commands.dimDocumentElement(node, 'nodeFamilyTree');