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
d9cb3773
Commit
d9cb3773
authored
Apr 08, 2016
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
insert text into shape(ios)
parent
bc9d4cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
cell/model/clipboard.js
cell/model/clipboard.js
+27
-0
No files found.
cell/model/clipboard.js
View file @
d9cb3773
...
...
@@ -2187,6 +2187,33 @@
{
//TODO сделать вставку текста всегда через эту функцию
this
.
activeRange
=
worksheet
.
activeRange
.
clone
(
true
);
//если находимся внутри шейпа
var
isIntoShape
=
worksheet
.
objectRender
.
controller
.
getTargetDocContent
();
if
(
isIntoShape
)
{
var
callback
=
function
(
isSuccess
)
{
if
(
isSuccess
===
false
)
{
return
false
;
}
var
Count
=
text
.
length
;
for
(
var
Index
=
0
;
Index
<
Count
;
Index
++
)
{
var
_char
=
text
.
charAt
(
Index
);
if
(
"
"
==
_char
)
isIntoShape
.
Paragraph_Add
(
new
ParaSpace
());
else
isIntoShape
.
Paragraph_Add
(
new
ParaText
(
_char
));
}
};
worksheet
.
objectRender
.
controller
.
checkSelectedObjectsAndCallback2
(
callback
);
return
;
}
var
aResult
=
[];
aResult
[
this
.
activeRange
.
r1
]
=
[];
...
...
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