Commit 44234dd9 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

http://bugzserver/show_bug.cgi?id=26334 - Появление сплошного выделения после...

http://bugzserver/show_bug.cgi?id=26334 - Появление сплошного выделения после копирования из Chrome в Safari, и открытия контекстного меню

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58240 954022d7-b5bf-4e40-9824-e11837661b57
parent 0bbfa5f7
......@@ -6694,6 +6694,26 @@ asc_docs_api.prototype.pre_Paste = function(_fonts, _images, callback)
window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0;
this.pasteCallback = null;
if (-1 != window.PasteEndTimerId)
{
clearTimeout(window.PasteEndTimerId);
window.PasteEndTimerId = -1;
document.body.style.MozUserSelect = "none";
document.body.style["-khtml-user-select"] = "none";
document.body.style["-o-user-select"] = "none";
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
var pastebin = Editor_Paste_GetElem(this, true);
if (!window.USER_AGENT_SAFARI_MACOS)
pastebin.onpaste = null;
pastebin.style.display = ELEMENT_DISPAY_STYLE;
}
return;
}
......
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