diff --git a/index.html b/index.html
index 1507656..f5fad7d 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,5 @@
-
+
@@ -9,9 +9,7 @@
-
-
-
-
+
+
diff --git a/meme.view.tree b/meme.view.tree
index a9911d8..c0e2aec 100644
--- a/meme.view.tree
+++ b/meme.view.tree
@@ -3,6 +3,9 @@ $hyoo_meme $mol_page
data /
plugins /
<= Theme $mol_theme_auto
+ event *
+ ^
+ paste? <=> paste? null
tools /
<= Add $mol_button_open
files?val <=> add?val /
diff --git a/meme.view.ts b/meme.view.ts
index b33e242..7842fb0 100644
--- a/meme.view.ts
+++ b/meme.view.ts
@@ -34,6 +34,11 @@ namespace $.$$ {
return super.title()
}
+ paste( event: ClipboardEvent ) {
+ const files = [ ... event.clipboardData!.files ]
+ $mol_wire_async( this ).add( files )
+ }
+
add( files: readonly File[] ) {
this.data([