Commit 792d6481 authored by campaign's avatar campaign

更新链接按钮状态

parent 06532951
......@@ -123,8 +123,12 @@ utils.extend( KityMinder, function () {
pro.root( $widget.kmui().getBodyContainer() );
//清除光标
km.fire('selectionclear')
km.fire('selectionclear');
pro.initContent( km, $widget );
//在dialog上阻止键盘冒泡,导致跟编辑输入冲突的问题
$widget.on('keydown keyup keypress mousedown mouseup',function(e){
e.stopPropagation()
});
if ( !pro._preventDefault ) {
pro.initEvent( km, $widget );
}
......
......@@ -43,6 +43,14 @@ KityMinder.registerModule( "hyperlink", function () {
n.setData( 'hyperlink' );
km.updateLayout(n)
} )
},
queryState: function (km) {
var nodes = km.getSelectedNodes();
if ( nodes.length == 0 ) {
return -1;
}
}
} )
},
......
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