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
4d752305
Commit
4d752305
authored
Mar 09, 2017
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add special paste function into word api
parent
2f175982
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
common/wordcopypaste.js
common/wordcopypaste.js
+9
-2
word/api.js
word/api.js
+12
-1
No files found.
common/wordcopypaste.js
View file @
4d752305
...
...
@@ -1776,10 +1776,17 @@ function CopyPasteCorrectString(str)
return
res
;
}
function
Editor_Paste_Exec
(
api
,
pastebin
,
nodeDisplay
,
onlyBinary
)
function
Editor_Paste_Exec
(
api
,
pastebin
,
nodeDisplay
,
onlyBinary
,
specialPasteProps
)
{
var
oPasteProcessor
=
new
PasteProcessor
(
api
,
true
,
true
,
false
);
oPasteProcessor
.
Start
(
pastebin
,
nodeDisplay
,
null
,
onlyBinary
);
if
(
!
specialPasteProps
)
{
oPasteProcessor
.
Start
(
pastebin
,
nodeDisplay
,
null
,
onlyBinary
);
}
else
{
}
}
function
trimString
(
str
){
return
str
.
replace
(
/^
\s
+|
\s
+$/g
,
''
)
;
...
...
word/api.js
View file @
4d752305
...
...
@@ -1779,7 +1779,18 @@ background-repeat: no-repeat;\
}
}
};
asc_docs_api
.
prototype
.
asc_SpecialPaste
=
function
(
props
)
{
return
AscCommon
.
g_clipboardBase
.
Special_Paste
(
props
);
};
asc_docs_api
.
prototype
.
asc_SpecialPasteData
=
function
(
props
)
{
AscCommon
.
Editor_Paste_Exec
(
this
,
null
,
null
,
null
,
props
);
//this.wb.specialPasteData(props);
};
asc_docs_api
.
prototype
.
onSaveCallback
=
function
(
e
,
isUndoRequest
)
{
var
t
=
this
;
...
...
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