Commit 91ef697b authored by Akikonata's avatar Akikonata

fixed IE bug

parent c6f94031
......@@ -34,7 +34,11 @@ KM.registerToolbarUI( 'saveto', function ( name ) {
var a = document.createElement( 'a' );
a.setAttribute( 'download', filename );
a.setAttribute( 'href', url );
a.dispatchEvent( new MouseEvent( 'click' ) );
try {
a.dispatchEvent( new MouseEvent( 'click' ) );
} catch ( error ) {
a.click();
}
}
comboboxWidget.on( 'comboboxselect', function ( evt, res ) {
......
......@@ -31,7 +31,6 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
this._paper = new kity.Paper();
this._paper.getNode().setAttribute( 'contenteditable', true );
this._paper.setStyle( 'font-family', 'Arial,MicrosoftYaHei,sans-serif' );
this._paper.getNode().ondragstart = function ( e ) {
e.preventDefault();
};
......@@ -42,6 +41,7 @@ var Minder = KityMinder.Minder = kity.createClass( "KityMinder", {
this._root.setType( "root" );
if ( this._options.renderTo ) {
this.renderTo( this._options.renderTo );
this._paper.setStyle( 'font-family', 'Arial,Microsoft YaHei,sans-serif' );
}
},
_addRenderContainer: function () {
......
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