index : worker-pastebin

A toy pastebin on Cloudflare Workers with E2EE, React frontend and S3-compatible storage backend

diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-02-20 14:32:09 +0800
committerPeter Cai <[email protected]>2020-02-20 14:32:09 +0800
commitb4dfeb8624f31672ca3a36540d49784883ef12ce (patch)
treefe110037a36d35c12c7e06b920bf4d382c666737
parent72d29ab1e930bfcacd3c091508d37a79aafc8526 (diff)
downloadworker-pastebin-b4dfeb8624f31672ca3a36540d49784883ef12ce.tar.gz
contentEditable: emit update also on paste
-rw-r--r--src/web/util/contentEditable.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/util/contentEditable.coffee b/src/web/util/contentEditable.coffee
index 3097802..a3ee2a2 100644
--- a/src/web/util/contentEditable.coffee
+++ b/src/web/util/contentEditable.coffee
@@ -67,6 +67,7 @@ class ContentEditable extends React.Component
selection.deleteFromDocument()
selection.getRangeAt 0
.insertNode document.createTextNode paste
+ @emitUpdate()
ev.preventDefault()
onKeyDown: (ev) =>