Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
65a97743
Commit
65a97743
authored
Feb 04, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by zhanyi
parent
b88195ef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
17 deletions
+23
-17
minder.node.js
src/core/minder.node.js
+1
-0
node.js
src/core/node.js
+3
-0
editor.js
src/module/editor.js
+19
-17
No files found.
src/core/minder.node.js
View file @
65a97743
...
...
@@ -30,4 +30,5 @@ kity.extendClass( Minder, {
km
.
renderNode
(
nodes
);
}
}
}
);
\ No newline at end of file
src/core/node.js
View file @
65a97743
...
...
@@ -219,5 +219,8 @@ var MinderNode = KityMinder.MinderNode = kity.createClass( "MinderNode", {
},
getTextShape
:
function
(){
return
this
.
getRenderContainer
().
getShapesByType
(
'text'
)[
0
]
},
isSelected
:
function
(){
return
this
.
getData
(
'highlight'
)
===
true
}
}
);
\ No newline at end of file
src/module/editor.js
View file @
65a97743
...
...
@@ -11,12 +11,12 @@ KityMinder.registerModule( "TextEditModule", function () {
},
"events"
:
{
'beforemousedown'
:
function
(
e
){
if
(
this
.
isSingleSelect
()){
var
node
=
this
.
getSelectedNode
();
var
node
=
e
.
getTargetNode
();
if
(
node
){
var
textShape
=
node
.
getTextShape
();
// node.getRenderContainer().setStyle('cursor','text');
textShape
.
setStyle
(
'cursor'
,
'default'
);
if
(
node
.
isSelected
()){
node
.
getTextShape
().
setStyle
(
'cursor'
,
'text'
);
receiver
.
setTextEditStatus
(
true
)
.
setCursor
(
cursor
)
.
setKityMinder
(
this
)
...
...
@@ -29,7 +29,9 @@ KityMinder.registerModule( "TextEditModule", function () {
.
updateCursor
()
.
setRange
(
range
);
}
}
else
{
receiver
.
clear
();
}
}
}
};
...
...
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