Custom wlxml tag/class names in breadcrumbs and familytree
[fnpeditor.git] / modules / documentCanvas / documentCanvas.js
index decda83..2f8dae5 100644 (file)
@@ -55,10 +55,10 @@ return function(sandbox) {
             sandbox.publish('currentNodeElementChanged', currentNodeElement);
         },
         highlightElement: function(element) {
             sandbox.publish('currentNodeElementChanged', currentNodeElement);
         },
         highlightElement: function(element) {
-            canvas.highlightElement(element);
+            element.toggleHighlight(true);
         },
         dimElement: function(element) {
         },
         dimElement: function(element) {
-            canvas.dimElement(element);
+            element.toggleHighlight(false);
         },
         jumpToElement: function(element) {
             canvas.setCurrentElement(element);
         },
         jumpToElement: function(element) {
             canvas.setCurrentElement(element);