diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-10 16:42:30 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-10 16:42:30 -0500 |
| commit | b9cf4175a3882415824f707a5431222e352658b2 (patch) | |
| tree | 3cdf0a1c6f1188089e8ec272b4e964f1f28fb4ba /public/assets/javascripts/ui/editor/TextEditor.js | |
| parent | 5673a05184ed0624ec33bfea27686e7e70b1d619 (diff) | |
cancel scenery for text
Diffstat (limited to 'public/assets/javascripts/ui/editor/TextEditor.js')
| -rw-r--r-- | public/assets/javascripts/ui/editor/TextEditor.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/TextEditor.js b/public/assets/javascripts/ui/editor/TextEditor.js index 51077af..33b5386 100644 --- a/public/assets/javascripts/ui/editor/TextEditor.js +++ b/public/assets/javascripts/ui/editor/TextEditor.js @@ -25,6 +25,11 @@ var TextEditor = FormView.extend({ this.$fontSize = this.$("[name=font-size]") this.$textBody = this.$("[name=text-body]") this.$textAlign = this.$("[name=text-align]") + + app.on("cancel-scenery", function(){ + this.createMode(true) + $("body").toggleClass("addText", false) + }.bind(this)) }, toggle: function(state){ |
