Commit e5e1a7f4 authored by Akikonata's avatar Akikonata

added dalog

parent 57ba2ba0
( function () {
var preferenceContent = '<div class="help-content" style="padding:20px;width:360px;">';
preferenceContent += '<h2>设置</h2>'
preferenceContent += '</div>';
KM.registerWidget( 'preference', {
tpl: preferenceContent,
initContent: function ( km ) {
var lang = km.getLang( 'dialogs.help' ),
html;
if ( lang ) {
html = $.parseTmpl( this.tpl, lang );
}
this.root().html( html );
},
initEvent: function ( km, $w ) {},
width: 400
} );
} )();
\ No newline at end of file
......@@ -63,7 +63,7 @@
'KITYMINDER_HOME_URL': getKMBasePath(),
//定义工具栏
toolbars: [
'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers | node | help'
'hand zoom-in zoom-out | undo redo | bold italic | fontfamily fontsize forecolor | saveto | markers | node | preference | help'
]
//只读模式,默认是false
//readOnly: true
......
KM.registerToolbarUI( 'markers help', function ( name ) {
KM.registerToolbarUI( 'markers help preference', function ( name ) {
var me = this,
currentRange, $dialog,
......
......@@ -32,3 +32,6 @@
.kmui-btn-toolbar .kmui-btn .kmui-icon-help {
background: url(../images/help.png) no-repeat 2px 2px;
}
.kmui-btn-toolbar .kmui-btn .kmui-icon-preference {
background: url(../images/setting.png) no-repeat 2px 2px;
}
\ 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