Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
45a3cabc
Commit
45a3cabc
authored
Jul 18, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 35355
parent
2830dfbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
21 deletions
+5
-21
common/wordcopypaste.js
common/wordcopypaste.js
+4
-20
word/api.js
word/api.js
+1
-1
No files found.
common/wordcopypaste.js
View file @
45a3cabc
...
...
@@ -2348,26 +2348,9 @@ PasteProcessor.prototype =
var
res
=
paragraph
;
var
props
=
window
[
'
AscCommon
'
].
g_clipboardBase
.
specialPasteProps
;
var
curDocSelection
=
this
.
curDocSelection
;
//стиль текущего параграфа/рана, в который вставляем
var
pasteIntoParagraphPr
,
pasteIntoParaRunPr
;
if
(
curDocSelection
&&
curDocSelection
[
1
])
{
pasteIntoParagraphPr
=
this
.
oDocument
.
Content
[
curDocSelection
[
1
].
CurPos
.
ContentPos
].
Pr
;
var
pasteIntoParaRun
=
this
.
oDocument
.
Content
[
curDocSelection
[
1
].
CurPos
.
ContentPos
].
Content
[
curDocSelection
[
0
].
CurPos
.
ContentPos
.
Data
[
0
]];
if
(
para_InlineLevelSdt
===
pasteIntoParaRun
.
Type
)
{
var
selectPos
=
curDocSelection
[
0
].
CurPos
.
ContentPos
.
Data
[
1
];
if
(
pasteIntoParaRun
.
Content
&&
null
!=
selectPos
&&
pasteIntoParaRun
.
Content
[
selectPos
])
{
pasteIntoParaRun
=
pasteIntoParaRun
.
Content
[
selectPos
];
}
}
pasteIntoParaRunPr
=
pasteIntoParaRun
?
pasteIntoParaRun
.
Pr
:
null
;
}
var
pasteIntoParagraphPr
=
this
.
oDocument
.
GetDirectParaPr
();
var
pasteIntoParaRunPr
=
this
.
oDocument
.
GetDirectTextPr
();
switch
(
props
)
{
...
...
@@ -2412,7 +2395,8 @@ PasteProcessor.prototype =
if
(
pasteIntoParagraphPr
)
{
paragraph
.
Set_Pr
(
pasteIntoParagraphPr
);
if
(
paragraph
.
TextPr
)
if
(
paragraph
.
TextPr
&&
pasteIntoParaRunPr
)
{
paragraph
.
TextPr
.
Value
=
pasteIntoParaRunPr
;
}
...
...
word/api.js
View file @
45a3cabc
...
...
@@ -2060,7 +2060,7 @@ background-repeat: no-repeat;\
}
var
specialPasteShowOptions
=
gClipboardBase
.
specialPasteButtonProps
?
gClipboardBase
.
specialPasteButtonProps
.
props
:
null
;
if
(
specialPasteShowOptions
&&
null
!==
this
.
showButtonIdParagraph
)
if
(
specialPasteShowOptions
&&
null
!==
gClipboardBase
.
showButtonIdParagraph
)
{
var
isUpdate
=
specialPasteShowOptions
.
cellCoord
;
var
id
=
gClipboardBase
.
showButtonIdParagraph
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment