Commit a48e6a7f authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

в ff часто вставлялись пробелы вместо текста, если копировать извне из нотпада...

в ff часто вставлялись пробелы вместо текста, если копировать извне из нотпада (везде, где не из хтмл).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52798 954022d7-b5bf-4e40-9824-e11837661b57
parent acb23e23
...@@ -29,6 +29,8 @@ window.USER_AGENT_WEBKIT = AscBrowser.isWebkit; ...@@ -29,6 +29,8 @@ window.USER_AGENT_WEBKIT = AscBrowser.isWebkit;
window.GlobalPasteFlagCounter = 0; window.GlobalPasteFlagCounter = 0;
window.GlobalPasteFlag = false; window.GlobalPasteFlag = false;
window.PasteEndTimerId = -1;
var COPY_ELEMENT_ID = "SelectId"; var COPY_ELEMENT_ID = "SelectId";
var PASTE_ELEMENT_ID = "wrd_pastebin"; var PASTE_ELEMENT_ID = "wrd_pastebin";
var ELEMENT_DISPAY_STYLE = "none"; var ELEMENT_DISPAY_STYLE = "none";
...@@ -2511,7 +2513,7 @@ function Editor_Paste(api, bClean) ...@@ -2511,7 +2513,7 @@ function Editor_Paste(api, bClean)
{ {
if (window.GlobalPasteFlagCounter != 2 && !window.GlobalPasteFlag) if (window.GlobalPasteFlagCounter != 2 && !window.GlobalPasteFlag)
{ {
window.setTimeout(func_timeout, 10); window.PasteEndTimerId = window.setTimeout(func_timeout, 10);
return; return;
} }
} }
...@@ -2539,10 +2541,16 @@ function Editor_Paste(api, bClean) ...@@ -2539,10 +2541,16 @@ function Editor_Paste(api, bClean)
} }
else else
pastebin.style.display = ELEMENT_DISPAY_STYLE; pastebin.style.display = ELEMENT_DISPAY_STYLE;
window.PasteEndTimerId = -1;
}; };
var _interval_time = window.USER_AGENT_MACOS ? 200 : 0; var _interval_time = window.USER_AGENT_MACOS ? 200 : 100;
window.setTimeout( func_timeout, _interval_time );
if (-1 != window.PasteEndTimerId)
clearTimeout(window.PasteEndTimerId);
window.PasteEndTimerId = window.setTimeout( func_timeout, _interval_time );
}; };
function CopyPasteCorrectString(str) function CopyPasteCorrectString(str)
{ {
......
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