fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: remove metadata editor which is now not needed
[fnpeditor.git]
/
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
(file)
--- 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) {
sandbox.getModule('documentCanvas').jumpToElement(element);
},
refreshCanvasSelection: function(selection) {
- var fragment = selection.toDocumentFragment(),
- elementParent;
-
+ var fragment = selection.toDocumentFragment();
sandbox.getModule('documentToolbar').setDocumentFragment(fragment);
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());
eventHandlers.documentHistory = {
ready: function() {
sandbox.getModule('documentHistory').addHistory(sandbox.getModule('data').getHistory());