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
0bffd58f
Commit
0bffd58f
authored
May 24, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deleted unused code
parent
dbf4ba92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
52 deletions
+5
-52
cell/model/clipboard.js
cell/model/clipboard.js
+5
-52
No files found.
cell/model/clipboard.js
View file @
0bffd58f
...
...
@@ -30,7 +30,6 @@
var
isTruePaste
=
false
;
//activate local buffer
var
activateLocalStorage
=
false
;
var
isOnlyLocalBufferSafari
=
false
;
var
copyPasteUseBinary
=
true
;
var
copyPasteFromWordUseBinary
=
true
;
...
...
@@ -708,14 +707,6 @@
return
true
;
}
else
if
(
activateLocalStorage
)
{
var
t
=
this
;
var
table
=
t
.
_makeTableNode
(
range
,
worksheet
,
isCut
);
if
(
table
!==
false
)
t
.
copyText
=
t
.
_getTextFromTable
(
table
);
return
true
;
}
return
false
;
},
...
...
@@ -769,7 +760,7 @@
t
.
_editorPasteExec
(
worksheet
,
pastebin
)
return
true
;
}
else
if
(
activateLocalStorage
||
copyPasteUseBinary
)
else
if
(
copyPasteUseBinary
)
{
var
t
=
this
;
...
...
@@ -793,7 +784,7 @@
copyCellValue
:
function
(
value
)
{
var
t
=
this
;
if
(
activateLocalStorage
||
copyPasteUseBinary
)
if
(
copyPasteUseBinary
)
t
.
_addValueToLocalStrg
(
value
);
var
nodes
=
t
.
_makeNodesFromCellValue
(
value
);
var
outer
;
...
...
@@ -884,7 +875,7 @@
0
);
return
true
;
}
else
if
(
activateLocalStorage
||
copyPasteUseBinary
)
else
if
(
copyPasteUseBinary
)
{
var
t
=
this
;
t
.
_addValueToLocalStrg
(
value
);
...
...
@@ -994,7 +985,7 @@
0
);
return
true
;
}
else
if
(
activateLocalStorage
||
copyPasteUseBinary
)
else
if
(
copyPasteUseBinary
)
{
if
(
t
.
lStorageText
)
callback
(
t
.
lStorageText
,
[]);
...
...
@@ -2317,44 +2308,6 @@
return
oRes
;
},
_isEqualText
:
function
(
node
,
table
){
var
t
=
this
;
if
(
undefined
==
t
.
copyText
||
node
==
undefined
)
return
false
;
//если приходят картинки, вставляем извне
if
(
t
.
copyText
.
isImage
)
{
return
false
;
}
if
(
t
.
copyText
.
text
&&
AscBrowser
.
isOpera
&&
node
.
text
.
replace
(
/
(\r
|
\t
|
\n
| |
\s)
/g
,
""
)
==
t
.
copyText
.
text
.
replace
(
/
(\r
|
\t
|
\n
| |
\s)
/g
,
""
))
return
true
;
if
(
AscBrowser
.
isIE
&&
t
.
copyText
.
text
!=
undefined
&&
node
.
text
!=
undefined
&&
node
.
text
==
""
&&
t
.
copyText
.
isImage
)
return
true
;
if
(
t
.
copyText
.
text
!=
undefined
&&
node
.
text
!=
undefined
&&
node
.
text
==
t
.
copyText
.
text
)
{
if
(
t
.
copyText
.
isImage
)
return
true
;
else
if
(
node
.
rows
&&
t
.
copyText
.
rows
&&
node
.
rows
==
t
.
copyText
.
rows
&&
node
.
cols
&&
t
.
copyText
.
cols
&&
node
.
cols
==
t
.
copyText
.
cols
)
return
true
;
}
if
(
table
&&
table
.
children
[
0
]
&&
node
.
text
.
replace
(
/
(\r
|
\t
|
\n
| |
\s)
/g
,
""
)
==
t
.
copyText
.
text
.
replace
(
/
(\r
|
\t
|
\n
| |
\s)
/g
,
""
))
{
if
(
table
.
children
[
0
].
getAttribute
(
"
class
"
)
!=
null
){
var
cL
=
table
.
children
[
0
].
getAttribute
(
"
class
"
).
split
(
"
"
);
for
(
var
i
=
0
;
i
<
cL
.
length
;
i
++
){
if
(
cL
[
i
].
indexOf
(
"
pasteFragment_
"
)
>
-
1
){
if
(
cL
[
i
]
==
t
.
copyText
.
pasteFragment
)
return
true
;
else
break
;
}
}
}
}
return
false
;
},
_checkMaxTextLength
:
function
(
aResult
,
r
,
c
)
{
var
result
=
false
;
...
...
@@ -2681,7 +2634,7 @@
}
else
{
if
(
activateLocalStorage
||
copyPasteUseBinary
)
if
(
copyPasteUseBinary
)
{
var
localStText
=
''
;
//add local buffer
...
...
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