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
1898b81e
Commit
1898b81e
authored
Aug 15, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug: copy/paste word to cell(shapes) do not load all fonts
parent
7b92bec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
cell/model/clipboard.js
cell/model/clipboard.js
+11
-2
No files found.
cell/model/clipboard.js
View file @
1898b81e
...
...
@@ -2960,8 +2960,17 @@
var
coverDocument
=
documentContentBounds
.
getBounds
(
0
,
0
,
documentContent
);
this
.
_parseChildren
(
coverDocument
);
var
newFonts
=
this
.
fontsNew
;
if
(
pasteData
.
fonts
&&
pasteData
.
fonts
.
length
)
{
newFonts
=
{};
for
(
var
i
=
0
;
i
<
pasteData
.
fonts
.
length
;
i
++
)
{
newFonts
[
pasteData
.
fonts
[
i
].
name
]
=
1
;
}
}
this
.
aResult
.
props
.
fontsNew
=
this
.
fontsNew
;
this
.
aResult
.
props
.
fontsNew
=
newFonts
;
this
.
aResult
.
props
.
rowSpanSpCount
=
0
;
this
.
aResult
.
props
.
cellCount
=
coverDocument
.
width
;
this
.
aResult
.
props
.
_images
=
pasteData
.
images
&&
pasteData
.
images
.
length
?
pasteData
.
images
:
this
.
aResult
.
props
.
_images
;
...
...
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