var TextEditor = FormView.extend({ el: "#textEditor", events: { "keydown": 'taint', "focus [name]": "clearMinotaur", "mousedown": "stopPropagation", "change [name=font-family]": 'changeFontFamily', "change [name=font-size]": 'changeFontSize', "input [name=text-body]": 'changeText', "click [data-role=destroy-media]": "destroy", }, initialize: function(opt){ this.parent = opt.parent this.__super__.initialize.call(this) this.$fontFamily = this.$("[name=font-family]") this.$fontSize = this.$("[name=font-size]") this.$textBody = this.$("[name=text-body]") }, toggle: function(state){ this.$el.toggleClass("active", state); }, taint: function(e){ e.stopPropagation() }, changeFontFamily: function(){ }, changeFontSize: function(){ }, changeText: function(){ }, })