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
7c325d63
Commit
7c325d63
authored
Jun 28, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for mobile editor(copy)
parent
519109c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
7 deletions
+56
-7
cell/model/clipboard.js
cell/model/clipboard.js
+56
-7
No files found.
cell/model/clipboard.js
View file @
7c325d63
...
...
@@ -103,16 +103,22 @@
//INTERNAL
if
(
AscCommon
.
c_oAscClipboardDataFormat
.
Internal
&
_formats
)
{
if
(
_data
&&
_data
.
base64
)
if
(
window
[
"
NATIVE_EDITOR_ENJINE
"
]
)
{
_data
=
_data
.
base64
;
_data
=
this
.
copyProcessor
.
getBinaryForMobile
()
;
}
else
{
_data
=
this
.
copyProcessor
.
getBinaryForCopy
(
ws
);
if
(
_data
&&
_data
.
base64
)
{
_data
=
_data
.
base64
;
}
else
{
_data
=
this
.
copyProcessor
.
getBinaryForCopy
(
ws
);
}
}
_data
=
"
xslData;
"
+
_data
;
_clipboard
.
pushData
(
AscCommon
.
c_oAscClipboardDataFormat
.
Internal
,
_data
);
}
}
...
...
@@ -199,7 +205,7 @@
else
{
sBase64
=
this
.
getBinaryForCopy
(
worksheet
);
$
(
container
.
children
[
0
]).
addClass
(
"
xslData;
"
+
sBase64
);
$
(
container
.
children
[
0
]).
addClass
(
sBase64
);
}
}
History
.
TurnOn
();
...
...
@@ -233,7 +239,50 @@
pptx_content_writer
.
End_UseFullUrl
();
return
sBase64
;
return
"
xslData;
"
+
sBase64
;
},
getBinaryForMobile
:
function
()
{
var
api
=
window
[
"
Asc
"
][
"
editor
"
];
if
(
!
api
||
!
api
.
wb
)
return
false
;
var
worksheetView
=
api
.
wb
.
getWorksheet
();
var
activeRange
=
worksheetView
.
getSelectedRange
();
var
objectRender
=
worksheetView
.
objectRender
;
var
isIntoShape
=
objectRender
.
controller
.
getTargetDocContent
();
History
.
TurnOff
();
var
sBase64
=
null
;
if
(
!
isIntoShape
)
sBase64
=
this
.
getBinaryForCopy
(
worksheetView
);
History
.
TurnOn
();
var
objectRender
=
worksheetView
.
objectRender
;
var
selectedImages
=
objectRender
.
getSelectedGraphicObjects
();
var
drawingUrls
=
[];
if
(
selectedImages
&&
selectedImages
.
length
)
{
var
correctUrl
,
graphicObj
;
for
(
var
i
=
0
;
i
<
selectedImages
.
length
;
i
++
)
{
graphicObj
=
selectedImages
[
i
];
if
(
graphicObj
.
isImage
())
{
if
(
window
[
"
NativeCorrectImageUrlOnCopy
"
])
{
correctUrl
=
window
[
"
NativeCorrectImageUrlOnCopy
"
](
graphicObj
.
getImageUrl
());
drawingUrls
[
i
]
=
correctUrl
;
}
else
{
drawingUrls
[
i
]
=
graphicObj
.
getBase64Img
();
}
}
}
}
return
{
sBase64
:
sBase64
,
text
:
this
.
lStorageText
,
drawingUrls
:
drawingUrls
};
},
//TODO пересмотреть функцию
...
...
@@ -521,7 +570,7 @@
res
.
push
(
span
);
}
return
res
;
}
,
}
};
function
PasteProcessorExcel
()
...
...
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