Commit 0d0c229e authored by Akikonata's avatar Akikonata

grunt

parent ceb8a7e9
......@@ -7,26 +7,26 @@
<meta name="description" content="百度脑图,便捷的脑图编辑工具。让您在线上直接创建、保存并分享你的思路。">
<script src="lib/jquery-2.1.0.min.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/ZeroClipboard.min.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/jquery-2.1.0.min.js?_=1399636761167" charset="utf-8"></script>
<script src="lib/ZeroClipboard.min.js?_=1399636761167" charset="utf-8"></script>
<script type="text/javascript">
ZeroClipboard.setDefaults( { moviePath: 'lib/ZeroClipboard.swf' } );
</script>
<script src="lib/kitygraph.all.min.js?_=1399633550603" charset="utf-8"></script>
<script src="kityminder.all.min.js?_=1399633550603" charset="utf-8"></script>
<script src="kityminder.config.js?_=1399633550603" charset="utf-8"></script>
<script src="lang/zh-cn/zh-cn.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/kitygraph.all.min.js?_=1399636761167" charset="utf-8"></script>
<script src="kityminder.all.min.js?_=1399636761167" charset="utf-8"></script>
<script src="kityminder.config.js?_=1399636761167" charset="utf-8"></script>
<script src="lang/zh-cn/zh-cn.js?_=1399636761167" charset="utf-8"></script>
<script src="lib/zip.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/zip.js?_=1399636761167" charset="utf-8"></script>
<script>
zip.inflateJSPath = 'lib/inflate.js';
</script>
<script src="lib/jquery.xml2json.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/baidu-frontia-js-full-1.0.0.js?_=1399633550603" charset="utf-8"></script>
<script src="social/draftmanager.js?_=1399633550603" charset="utf-8"></script>
<script src="social/social.js?_=1399633550603" charset="utf-8"></script>
<script src="lib/jquery.xml2json.js?_=1399636761167" charset="utf-8"></script>
<script src="lib/baidu-frontia-js-full-1.0.0.js?_=1399636761167" charset="utf-8"></script>
<script src="social/draftmanager.js?_=1399636761167" charset="utf-8"></script>
<script src="social/social.js?_=1399636761167" charset="utf-8"></script>
<link href="social/social.css" rel="stylesheet">
<link href="themes/default/css/import.css" type="text/css" rel="stylesheet" />
......
......@@ -5037,6 +5037,7 @@ KityMinder.registerModule( "TextEditModule", function () {
};
km.textEditNode = function(node){
var textShape = node.getTextShape();
this.setStatus('textedit');
sel.setHide();
......@@ -5115,7 +5116,6 @@ KityMinder.registerModule( "TextEditModule", function () {
selectionByClick = false;
}
km.setStatus('textedit');
lastMousedownTimer = +new Date;
}
}
},
......@@ -5254,45 +5254,45 @@ KityMinder.registerModule( "TextEditModule", function () {
sel.setHide();
},
"execCommand": function( e ) {
// var cmds = {
// 'appendchildnode' : 1,
// 'appendsiblingnode' : 1,
// 'editnode' : 1
// };
// if ( cmds[ e.commandName ] ){
//
// var node = km.getSelectedNode();
// if( !node ){
// return;
// }
//
// var textShape = node.getTextShape();
//
// textShape.setStyle('cursor','default');
// node.getTextShape().setStyle('cursor','text');
// km.setStatus('textedit');
// receiver.setTextEditStatus(true)
// .setSelection(sel)
// .setKityMinder(this)
// .setMinderNode(node)
// .setTextShape(textShape)
// .setBaseOffset()
// .setContainerStyle()
// .setSelectionHeight()
// .getTextOffsetData()
// .setIndex(0)
// .updateSelection()
// .setRange(range);
//
// sel.setStartOffset(0);
// sel.setEndOffset(textShape.getContent().length);
// sel.setShow();
//
// receiver.updateSelectionShow(1)
// .updateRange(range);
// return;
//
// }
var cmds = {
'appendchildnode' : 1,
'appendsiblingnode' : 1,
'editnode' : 1
};
if ( cmds[ e.commandName ] ){
var node = km.getSelectedNode();
if( !node ){
return;
}
var textShape = node.getTextShape();
textShape.setStyle('cursor','default');
node.getTextShape().setStyle('cursor','text');
km.setStatus('textedit');
receiver.setTextEditStatus(true)
.setSelection(sel)
.setKityMinder(this)
.setMinderNode(node)
.setTextShape(textShape)
.setBaseOffset()
.setContainerStyle()
.setSelectionHeight()
.getTextOffsetData()
.setIndex(0)
.updateSelection()
.setRange(range);
sel.setStartOffset(0);
sel.setEndOffset(textShape.getContent().length);
sel.setShow();
receiver.updateSelectionShow(1)
.updateRange(range);
return;
}
if((e.commandName == 'priority' || e.commandName == 'progress') && this.getStatus() == 'textedit' ){
......@@ -5869,6 +5869,7 @@ Minder.Selection = kity.createClass( 'Selection', {
}else{
this.setOpacity(0.5);
}
this.bringTop();
return this;
},
setPosition: function ( offset ) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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