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
ca256965
Commit
ca256965
authored
Apr 04, 2016
by
Sergey Luzyanin
Committed by
Alexander.Trofimov
May 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for mobile spreadsheet editor startEditTextCurrentShape
parent
271c8c0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
common/Drawings/CommonController.js
common/Drawings/CommonController.js
+31
-0
No files found.
common/Drawings/CommonController.js
View file @
ca256965
...
...
@@ -341,6 +341,37 @@ function DrawingObjectsController(drawingObjects)
DrawingObjectsController
.
prototype
=
{
//for mobile spreadsheet editor
startEditTextCurrentShape
:
function
()
{
if
(
this
.
selectedObjects
.
length
===
1
&&
this
.
selectedObjects
[
0
].
getObjectType
()
===
historyitem_type_Shape
)
{
var
oShape
=
this
.
selectedObjects
[
0
];
var
oContent
=
oShape
.
getDocContent
();
if
(
oContent
)
{
this
.
resetInternalSelection
();
this
.
selection
.
textSelection
=
oShape
;
oContent
.
Cursor_MoveToEndPos
(
false
);
this
.
updateSelectionState
();
this
.
updateOverlay
();
}
else
{
var
oThis
=
this
;
this
.
checkSelectedObjectsAndCallback
(
function
(){
oShape
.
createTextBody
();
var
oContent
=
oShape
.
getDocContent
();
oThis
.
resetInternalSelection
();
oThis
.
selection
.
textSelection
=
oShape
;
oContent
.
Cursor_MoveToEndPos
(
false
);
oThis
.
updateSelectionState
();
},
[],
false
,
historydescription_Spreadsheet_AddNewParagraph
);
}
}
},
canReceiveKeyPress
:
function
()
{
return
this
.
curState
instanceof
NullState
;
...
...
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