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