Commit b9470203 authored by campaign's avatar campaign

by zhanyi

parent 87667b8c
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
'KITYMINDER_HOME_URL': getKMBasePath(), 'KITYMINDER_HOME_URL': getKMBasePath(),
//定义工具栏 //定义工具栏
toolbars: [ toolbars: [
'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers' 'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers | node'
] ]
//设置主题 //设置主题
......
...@@ -62,6 +62,7 @@ $dependency = Array( ...@@ -62,6 +62,7 @@ $dependency = Array(
,'src/adapter/view.js' ,'src/adapter/view.js'
,'src/adapter/dialog.js' ,'src/adapter/dialog.js'
,'src/adapter/tooltips.js' ,'src/adapter/tooltips.js'
,'src/adapter/node.js'
,'src/protocal/plain.js' ,'src/protocal/plain.js'
,'src/protocal/json.js' ,'src/protocal/json.js'
); );
......
...@@ -10,6 +10,7 @@ KityMinder.LANG[ 'zh-cn' ] = { ...@@ -10,6 +10,7 @@ KityMinder.LANG[ 'zh-cn' ] = {
'fontfamily': '字体', 'fontfamily': '字体',
'fontsize': '字号', 'fontsize': '字号',
'layoutstyle': '主题', 'layoutstyle': '主题',
'node':'节点操作',
'saveto': '导出', 'saveto': '导出',
'hand': '允许拖拽', 'hand': '允许拖拽',
'zoom-in': '放大', 'zoom-in': '放大',
...@@ -35,9 +36,14 @@ KityMinder.LANG[ 'zh-cn' ] = { ...@@ -35,9 +36,14 @@ KityMinder.LANG[ 'zh-cn' ] = {
'quarterdone': '完成1/4', 'quarterdone': '完成1/4',
'halfdone': '完成1/2', 'halfdone': '完成1/2',
'threequartersdone': '完成3/4', 'threequartersdone': '完成3/4',
'done': '已完成', 'done': '已完成'
} }
} }
},
'node':{
'appendsiblingnode':'插入兄弟节点',
'appendchildnode':'插入孩子节点',
'removenode':'删除节点'
} }
}; };
\ No newline at end of file
...@@ -30,7 +30,6 @@ KM.registerToolbarUI( 'layoutstyle fontfamily fontsize', function ( name ) { ...@@ -30,7 +30,6 @@ KM.registerToolbarUI( 'layoutstyle fontfamily fontsize', function ( name ) {
case 'fontsize': case 'fontsize':
options = transForFontsize( options ); options = transForFontsize( options );
break; break;
} }
//实例化 //实例化
......
...@@ -181,7 +181,12 @@ KityMinder.registerModule( "LayoutModule", function () { ...@@ -181,7 +181,12 @@ KityMinder.registerModule( "LayoutModule", function () {
} }
}, },
"defaultOptions": { "defaultOptions": {
"defaultlayoutstyle": "default" "defaultlayoutstyle": "default",
"node":{
'appendsiblingnode':'appendsiblingnode',
'appendchildnode':'appendchildnode',
'removenode':'removenode'
}
} }
}; };
} ); } );
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment