Support image copy-paste for Firefox 24+.

This commit is contained in:
Vikhyat Korrapati 2014-03-16 20:04:05 +05:30
parent 2e4a699b30
commit 4f910e1c82
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
// Ctrl+v to paste so we should be conservative about what browsers this runs
// in.
var uaMatch = navigator.userAgent.match(/Firefox\/(\d+)\.\d/);
if (uaMatch && parseInt(uaMatch[1]) >= 26) {
if (uaMatch && parseInt(uaMatch[1]) >= 24) {
self.$().append( Ember.$("<div id='contenteditable' contenteditable='true' style='height: 0; width: 0; overflow: hidden'></div>") );
self.$().off('keydown.contenteditable');
self.$().on('keydown.contenteditable', function(event) {