From 3362eaa752b14b95ac38592a351459eb655913d2 Mon Sep 17 00:00:00 2001 From: kmoe Date: Mon, 10 Aug 2015 12:13:35 +0100 Subject: [PATCH] add negative tabindex so paste manager does not receive focus --- src/modules/paste-manager.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/paste-manager.coffee b/src/modules/paste-manager.coffee index 6f9ba77c1b..67cd5b8177 100644 --- a/src/modules/paste-manager.coffee +++ b/src/modules/paste-manager.coffee @@ -11,6 +11,7 @@ class PasteManager constructor: (@quill, options) -> @container = @quill.addContainer('ql-paste-manager') @container.setAttribute('contenteditable', true) + @container.setAttribute('tabindex', '-1') dom(@quill.root).on('paste', _.bind(this._paste, this)) @options = _.defaults(options, PasteManager.DEFAULTS) @options.onConvert ?= this._onConvert;