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

правка для презентаций в Editor_CopyPaste_Create

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58767 954022d7-b5bf-4e40-9824-e11837661b57
parent 24aba38a
......@@ -2176,7 +2176,12 @@ function Editor_Paste_GetElem(api, bClean)
pastebin.style.overflow = 'hidden';
pastebin.style.zIndex = -1000;
//��������� ������ ������������, ����� �������� �������� ����� pastebin �������� span � ������� ��� �������� ������ � computedStyle ���������� ����������� ��������� ��������� �� ���������
var Def_rPr = oWordControl.m_oLogicDocument.Styles.Default.TextPr;
var Def_rPr;
if(g_bIsDocumentCopyPaste)
Def_rPr = oWordControl.m_oLogicDocument.Styles.Default.TextPr;
else
Def_rPr = oWordControl.m_oLogicDocument.globalTableStyles.Default.TextPr;
pastebin.style.fontFamily = Def_rPr.FontFamily.Name;
if (!api.DocumentReaderMode)
......@@ -6775,7 +6780,12 @@ function Editor_CopyPaste_Create(api)
ElemToSelect.style["-webkit-user-select"] = "text";
ElemToSelect.setAttribute("contentEditable", true);
var Def_rPr = api.WordControl.m_oLogicDocument.Styles.Default.TextPr;
var Def_rPr;
if(g_bIsDocumentCopyPaste)
Def_rPr = oWordControl.m_oLogicDocument.Styles.Default.TextPr;
else
Def_rPr = oWordControl.m_oLogicDocument.globalTableStyles.Default.TextPr;
ElemToSelect.style.fontFamily = Def_rPr.FontFamily.Name;
if (!api.DocumentReaderMode)
......
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