From db22adfd3c4e7e1a061e055c060c3954362ee4b2 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 13 Jul 2016 10:40:03 +0200 Subject: [PATCH] Removed obsolet code. --- .../javascripts/app/lib/base/jquery.contenteditable.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js index 8376dc033..bddbcde12 100644 --- a/app/assets/javascripts/app/lib/base/jquery.contenteditable.js +++ b/app/assets/javascripts/app/lib/base/jquery.contenteditable.js @@ -202,8 +202,8 @@ // insert and in case, resize images var clipboardData - if (window.clipboardData) { // ie - clipboardData = window.clipboardData + if (e.clipboardData) { // ie + clipboardData = e.clipboardData } else if (e.originalEvent.clipboardData) { // other browsers clipboardData = e.originalEvent.clipboardData @@ -212,7 +212,6 @@ throw "No clipboardData support" } - var clipboardData = e.clipboardData || e.originalEvent.clipboardData if (clipboardData && clipboardData.items && clipboardData.items[0]) { var imageInserted = false var item = clipboardData.items[0]