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
07ccb6b8
Commit
07ccb6b8
authored
Jul 15, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for mobile version paste(word -> cell)
parent
5dde163a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+27
-10
No files found.
cell/view/WorksheetView.js
View file @
07ccb6b8
...
...
@@ -9412,17 +9412,34 @@
}
else
{
AscCommon
.
sendImgUrls
(
api
,
oObjectsForDownload
.
aUrls
,
function
(
data
)
{
var
oImageMap
=
{};
AscCommon
.
ResetNewUrls
(
data
,
oObjectsForDownload
.
aUrls
,
oObjectsForDownload
.
aBuilderImagesByUrl
,
oImageMap
);
if
(
window
[
"
NATIVE_EDITOR_ENJINE
"
])
{
var
oImageMap
=
{};
AscCommon
.
ResetNewUrls
(
data
,
oObjectsForDownload
.
aUrls
,
oObjectsForDownload
.
aBuilderImagesByUrl
,
oImageMap
);
if
(
pasteContent
.
props
.
onlyImages
!==
true
)
{
t
.
_pasteData
(
isLargeRange
,
isLocal
,
pasteContent
,
bIsUpdate
,
canChangeColWidth
);
}
api
.
wb
.
clipboard
.
pasteProcessor
.
_insertImagesFromBinaryWord
(
t
,
pasteContent
,
oImageMap
);
//закрываем транзакцию, поскольку в setSelectionInfo она не закроется
History
.
EndTransaction
();
},
true
);
if
(
pasteContent
.
props
.
onlyImages
!==
true
)
{
t
.
_pasteData
(
isLargeRange
,
isLocal
,
pasteContent
,
bIsUpdate
,
canChangeColWidth
);
}
api
.
wb
.
clipboard
.
pasteProcessor
.
_insertImagesFromBinaryWord
(
t
,
pasteContent
,
oImageMap
);
isEndTransaction
=
true
;
}
else
{
AscCommon
.
sendImgUrls
(
api
,
oObjectsForDownload
.
aUrls
,
function
(
data
)
{
var
oImageMap
=
{};
AscCommon
.
ResetNewUrls
(
data
,
oObjectsForDownload
.
aUrls
,
oObjectsForDownload
.
aBuilderImagesByUrl
,
oImageMap
);
if
(
pasteContent
.
props
.
onlyImages
!==
true
)
{
t
.
_pasteData
(
isLargeRange
,
isLocal
,
pasteContent
,
bIsUpdate
,
canChangeColWidth
);
}
api
.
wb
.
clipboard
.
pasteProcessor
.
_insertImagesFromBinaryWord
(
t
,
pasteContent
,
oImageMap
);
//закрываем транзакцию, поскольку в setSelectionInfo она не закроется
History
.
EndTransaction
();
},
true
);
}
}
}
else
if
(
pasteContent
.
props
.
onlyImages
!==
true
)
...
...
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