mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #2132 from vikhyat/firefox-paste-image
Support image copy-paste for Firefox 24+
This commit is contained in:
commit
2085c82360
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue