We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a4590 commit 5ea6221Copy full SHA for 5ea6221
editor/js/Menubar.File.js
@@ -19,15 +19,25 @@ Menubar.File = function ( editor ) {
19
options.setDisplay( 'none' );
20
container.add( options );
21
22
- /*
23
// open
24
+ var input = document.createElement( 'input' );
25
+ input.type = 'file';
26
+ input.addEventListener( 'change', function ( event ) {
27
+
28
+ editor.loader.loadFile( input.files[ 0 ] );
29
30
+ } );
31
32
var option = new UI.Panel();
33
option.setClass( 'option' );
34
option.setTextContent( 'Open' );
- option.onClick( function () { alert( 'Open' ) } );
35
+ option.onClick( function () {
36
37
+ input.click();
38
39
40
options.add( option );
- */
41
42
// reset
43
0 commit comments