// this version uses the filepicker.io service editors.FilepickerIO = editors.Text.extend({ tagName: 'div', events: { 'change input[type=file]': 'uploadFile', 'click .remove': 'removeFile' }, initialize: function(options) { _.bindAll(this, 'filepickerSuccess', 'filepickerError', 'filepickerProgress'); editors.Text.prototype.initialize.call(this, options); this.$input = $(''); this.$uploadInput = $(''); this.$loader = $('

Uploading…

'); this.$error = $('

Error

'); this.$list = $('