X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/c87e0588345e6bb7795f5b982042baa0173db988..d1363cb9ab794cf33c7d30cf15830857c8a9636c:/modules/documentCanvas/canvas/documentElement.js diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index d58d8c1..3601732 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -360,6 +360,10 @@ $.extend(DocumentNodeElement.prototype, { var displayCss = toggle ? 'inline-block' : 'none'; var label = this.dom().children('.canvas-widgets').find('.canvas-widget-label'); label.css('display', displayCss); + this.toggleHighlight(toggle); + }, + + toggleHighlight: function(toogle) { this.dom().toggleClass('highlighted-element'); } }); @@ -530,6 +534,10 @@ $.extend(DocumentTextElement.prototype, { this.after(newElement); newElement.after(rhsTextElement); return newElement; + }, + + toggleHighlight: function() { + // do nothing for now } });