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
318eac64
Commit
318eac64
authored
Aug 08, 2014
by
campaign
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
右键添加插入节点菜单
parent
09a3fa39
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
3 deletions
+34
-3
CHANGELOG.md
CHANGELOG.md
+9
-0
zh-cn.js
lang/zh-cn/zh-cn.js
+4
-0
contextmenu.js
src/adapter/contextmenu.js
+11
-3
node.js
src/module/node.js
+10
-0
No files found.
CHANGELOG.md
View file @
318eac64
# KityMinder 更新日志
## v1.3.0
### 体验优化
1.
当在空白处右键时,在菜单项中添加插入节点选项
### BUG修复
1.
修复在空白节点有时会出现a字符的问题
## v1.2.1
### 体验优化
...
...
lang/zh-cn/zh-cn.js
View file @
318eac64
...
...
@@ -14,6 +14,10 @@ KityMinder.LANG['zh-cn'] = {
'fresh-purple'
:
'浪漫紫'
,
'fresh-pink'
:
'脑残粉'
},
'insert'
:{
//'maintopic':'插入中心主题',
'topic'
:
'插入分支主题'
},
'maintopic'
:
'中心主题'
,
'topic'
:
'分支主题'
,
'tooltips'
:
{
...
...
src/adapter/contextmenu.js
View file @
318eac64
...
...
@@ -18,7 +18,7 @@ KM.registerUI( 'contextmenu', function () {
if
(
item
.
exec
){
item
.
exec
.
apply
(
km
)
item
.
exec
.
apply
(
me
);
}
else
{
me
.
execCommand
(
item
.
cmdName
);
}
...
...
@@ -50,11 +50,19 @@ KM.registerUI( 'contextmenu', function () {
data
.
length
&&
data
.
push
(
item
);
return
;
}
if
(
item
.
query
){
if
(
item
.
query
.
apply
(
me
)
!=
-
1
)
data
.
push
({
label
:
item
.
label
,
value
:
item
.
cmdName
});
return
;
}
if
(
me
.
queryCommandState
(
item
.
cmdName
)
!=-
1
){
data
.
push
({
label
:
item
.
label
,
value
:
item
.
cmdName
})
})
;
}
});
if
(
data
.
length
){
...
...
@@ -79,6 +87,6 @@ KM.registerUI( 'contextmenu', function () {
if
(
e
.
isRightMB
()){
//e.stopPropagationImmediately();
}
})
})
;
}
);
src/module/node.js
View file @
318eac64
...
...
@@ -111,6 +111,16 @@ KityMinder.registerModule('NodeModule', function() {
cmdName
:
'RemoveNode'
},
{
divider
:
1
},{
label
:
this
.
getLang
(
'insert.topic'
),
exec
:
function
()
{
this
.
select
(
this
.
getRoot
());
this
.
execCommand
(
'AppendSiblingNode'
,
this
.
getLang
(
'topic'
));
},
query
:
function
(){
var
nodes
=
this
.
getSelectedNodes
();
return
nodes
.
length
===
0
?
0
:
-
1
;
}
}]
};
});
\ No newline at end of file
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