mirror of https://github.com/artf/grapesjs.git
4 changed files with 9 additions and 11 deletions
@ -1,16 +1,13 @@ |
|||||
define(function() { |
define(function() { |
||||
/** |
|
||||
* @class SwitchVisibility |
|
||||
* @private |
|
||||
* */ |
|
||||
return { |
return { |
||||
|
|
||||
run: function() { |
run: function(ed) { |
||||
this.$canvas.addClass(this.pfx + 'dashed'); |
ed.Canvas.getBody().className = this.ppfx + 'dashed'; |
||||
}, |
}, |
||||
|
|
||||
stop: function() { |
stop: function(ed) { |
||||
this.$canvas.removeClass(this.pfx + 'dashed'); |
ed.Canvas.getBody().className = ""; |
||||
} |
} |
||||
|
|
||||
}; |
}; |
||||
}); |
}); |
||||
Loading…
Reference in new issue