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
7cc467bb
Commit
7cc467bb
authored
Aug 14, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ by paste internal array(for plugin)
parent
ac23fc25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
13 deletions
+28
-13
common/wordcopypaste.js
common/wordcopypaste.js
+28
-13
No files found.
common/wordcopypaste.js
View file @
7cc467bb
...
...
@@ -3099,11 +3099,6 @@ PasteProcessor.prototype =
this
.
_pasteBinaryFromPresentation
(
base64FromPresentation
,
bDuplicate
);
bInsertFromBinary
=
true
;
}
else
if
(
typeof
fromBinary
===
"
object
"
)
{
this
.
_pasteBinaryFromWord
(
fromBinary
,
true
);
bInsertFromBinary
=
true
;
}
if
(
fromBinary
)
{
...
...
@@ -4325,17 +4320,37 @@ PasteProcessor.prototype =
if
(
onlyBinary
)
{
if
(
onlyBinary
.
indexOf
(
"
pptData;
"
)
>
-
1
)
{
base64FromPresentation
=
onlyBinary
.
split
(
'
pptData;
'
)[
1
];
}
else
if
(
onlyBinary
.
indexOf
(
"
docData;
"
)
>
-
1
)
if
(
typeof
onlyBinary
===
"
object
"
)
{
base64FromWord
=
onlyBinary
.
split
(
'
docData;
'
)[
1
];
var
prefix
=
String
.
fromCharCode
(
onlyBinary
[
0
],
onlyBinary
[
1
],
onlyBinary
[
2
],
onlyBinary
[
3
])
if
(
"
PPTY
"
===
prefix
)
{
base64FromPresentation
=
onlyBinary
;
}
else
if
(
"
DOCY
"
===
prefix
)
{
base64FromWord
=
onlyBinary
;
}
else
if
(
"
XLSY
"
===
prefix
)
{
base64FromExcel
=
onlyBinary
;
}
}
else
if
(
onlyBinary
.
indexOf
(
"
xslData;
"
)
>
-
1
)
else
{
base64FromExcel
=
onlyBinary
.
split
(
'
xslData;
'
)[
1
];
if
(
onlyBinary
.
indexOf
(
"
pptData;
"
)
>
-
1
)
{
base64FromPresentation
=
onlyBinary
.
split
(
'
pptData;
'
)[
1
];
}
else
if
(
onlyBinary
.
indexOf
(
"
docData;
"
)
>
-
1
)
{
base64FromWord
=
onlyBinary
.
split
(
'
docData;
'
)[
1
];
}
else
if
(
onlyBinary
.
indexOf
(
"
xslData;
"
)
>
-
1
)
{
base64FromExcel
=
onlyBinary
.
split
(
'
xslData;
'
)[
1
];
}
}
}
else
if
(
node
)
...
...
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