Commit 180462b3 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov
parent 0890d296
......@@ -764,6 +764,9 @@
delete document.body.style["user-select"];
document.body.style["-webkit-user-select"] = "text";
var overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
var Text;
var pastebin = t._editorPasteGetElem(worksheet,true);
pastebin.style.display = "block";
......@@ -821,6 +824,8 @@
document.body.style["-o-user-select"] = "none";
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
document.body.style.overflow = overflowBody;
if(!isTruePaste)
t._editorPasteExec(worksheet, pastebin);
......@@ -2314,7 +2319,10 @@
},
_selectElement: function (callback) {
var t = this, selection, rangeToSelect;
var t = this, selection, rangeToSelect, overflowBody;
overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
if (window.getSelection) {// all browsers, except IE before version 9
selection = window.getSelection();
......@@ -2357,6 +2365,8 @@
t.element.style.MozUserSelect = "none";
document.body.style.overflow = overflowBody;
// for paste event
if (callback && callback.call) {callback();}
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment