Authored by 李奇

粘贴发送修改

... ... @@ -43,6 +43,7 @@ function Paste(sl, cb) {
this.uploadCb = cb;
this.isSending = false;
this.bindEvents();
this.input = '';
}
Paste.prototype = {
... ... @@ -50,6 +51,7 @@ Paste.prototype = {
var self = this;
this.$el.addEventListener('paste', function(e) {
self.input = $('.text.msg-area').val();
var cbd = e.clipboardData;
var ua = window.navigator.userAgent;
... ... @@ -133,6 +135,7 @@ Paste.prototype = {
var image = new Image();
image.src = base64;
image.onload = function() {
$('.text.msg-area').val(self.input);
_drawPreview(base64);
self.open();
};
... ...