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
6e322891
Commit
6e322891
authored
Aug 02, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
paste CGraphicFrame into word editor
parent
91893d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
common/wordcopypaste.js
common/wordcopypaste.js
+15
-2
No files found.
common/wordcopypaste.js
View file @
6e322891
...
...
@@ -2400,9 +2400,22 @@ PasteProcessor.prototype =
if
(
!
objects
.
arrImages
.
length
&&
objects
.
arrShapes
.
length
===
1
&&
objects
.
arrShapes
[
0
]
&&
objects
.
arrShapes
[
0
].
Drawing
&&
objects
.
arrShapes
[
0
].
Drawing
.
graphicObject
)
{
var
drawing
=
objects
.
arrShapes
[
0
].
Drawing
;
//TODO в данном вставляется как html
if
(
typeof
CGraphicFrame
!==
"
undefined
"
&&
drawing
instanceof
CGraphicFrame
)
break
;
{
var
aContent
=
[];
var
table
=
AscFormat
.
ConvertGraphicFrameToWordTable
(
drawing
);
aContent
.
push
(
table
);
this
.
aContent
=
aContent
;
oThis
.
api
.
pre_Paste
(
aContent
.
fonts
,
aContent
.
images
,
fPrepasteCallback
);
if
(
bTurnOffTrackRevisions
){
oThis
.
api
.
WordControl
.
m_oLogicDocument
.
TrackRevisions
=
true
;
}
return
;
}
}
...
...
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