Support image copy-paste for Firefox 24+.
This commit is contained in:
parent
2e4a699b30
commit
4f910e1c82
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue