Commit 63267deb authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

меняю свойство MozUserSelect при копировании

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56701 954022d7-b5bf-4e40-9824-e11837661b57
parent 766cd839
......@@ -210,7 +210,9 @@ function Editor_Copy(api, bCut)
delete document.body.style["-o-user-select"];
delete document.body.style["user-select"];
document.body.style["-webkit-user-select"] = "text";
ElemToSelect.style.MozUserSelect = "all";
if (null != api.WordControl.m_oLogicDocument)
{
var oCopyProcessor = new CopyProcessor(api, ElemToSelect);
......@@ -283,6 +285,8 @@ function Editor_Copy(api, bCut)
document.body.style["-o-user-select"] = "none";
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
ElemToSelect.style.MozUserSelect = "none";
if(true == bCut)
{
......@@ -3757,7 +3761,7 @@ PasteProcessor.prototype =
_readFromBinaryExcel: function(base64)
{
var oBinaryFileReader = new Asc.BinaryFileReader(null, true);
var tempWorkbook = new Workbook;
var tempWorkbook = new Workbook();
tempWorkbook.theme = this.oDocument.theme;
Asc.getBinaryOtherTableGVar(tempWorkbook);
oBinaryFileReader.Read(base64, tempWorkbook);
......
......@@ -721,6 +721,8 @@
delete doc.body.style["user-select"];
doc.body.style["-webkit-user-select"] = "text";
doc.body.style.MozUserSelect = "text";
this.element.style.MozUserSelect = "all";
},
_getUseFullUrl: function(recalculate)
......@@ -2353,6 +2355,8 @@
doc.body.style["user-select"] = "none";
doc.body.style["-webkit-user-select"] = "none";
t.element.style.MozUserSelect = "none";
// for paste event
if (callback && callback.call) {callback();}
},
......@@ -5206,7 +5210,7 @@ function Editor_CopyPaste_Create2(api)
ElemToSelect.setAttribute("class", COPYPASTE_ELEMENT_CLASS);
ElemToSelect.style.left = '0px';
ElemToSelect.style.top = '-100px';
ElemToSelect.style.top = '100px';
ElemToSelect.style.width = '1000px';
ElemToSelect.style.height = '100px';
ElemToSelect.style.overflow = 'hidden';
......@@ -5265,7 +5269,7 @@ function Editor_CopyPaste_Create2(api)
elementText.style.width = '10000px';
elementText.style.height = '100px';
elementText.style.left = '0px';
elementText.style.top = '-100px';
elementText.style.top = '100px';
elementText.style.overflow = 'hidden';
elementText.style.zIndex = -1000;
elementText.style.display = ELEMENT_DISPAY_STYLE2;
......
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