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

http://bugzserver/show_bug.cgi?id=28197 - Вставляется пустая Text Area при...

http://bugzserver/show_bug.cgi?id=28197 - Вставляется пустая Text Area при вставке через Top Toolbar вырезанной Text Area

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61023 954022d7-b5bf-4e40-9824-e11837661b57
parent 65324480
...@@ -2326,7 +2326,7 @@ function Editor_Paste_Button(api) ...@@ -2326,7 +2326,7 @@ function Editor_Paste_Button(api)
else else
{ {
var ElemToSelect = document.getElementById( COPY_ELEMENT_ID ); var ElemToSelect = document.getElementById( COPY_ELEMENT_ID );
if(ElemToSelect) if(ElemToSelect && ElemToSelect.innerHTML !== " " && ElemToSelect.innerHTML !== "")
{ {
History.Create_NewPoint(); History.Create_NewPoint();
editor.waitSave = true; editor.waitSave = true;
...@@ -4241,6 +4241,8 @@ PasteProcessor.prototype = ...@@ -4241,6 +4241,8 @@ PasteProcessor.prototype =
this.oRootNode = node; this.oRootNode = node;
this._Prepeare(node, this._Prepeare(node,
function(){ function(){
/*if(node.innerHTML == " ")
return;*/
oThis.aContent = []; oThis.aContent = [];
//�� ����� ���������� �������� ��� ������� ��������� ������� //�� ����� ���������� �������� ��� ������� ��������� �������
var arrShapes = [], arrImages = [], arrTables = []; var arrShapes = [], arrImages = [], arrTables = [];
......
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