diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/mumi.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/assets/js/mumi.js b/assets/js/mumi.js index b37b138..dde30a6 100644 --- a/assets/js/mumi.js +++ b/assets/js/mumi.js @@ -139,6 +139,13 @@ var mumi = (function () { form.submit (); }); + inputElement.addEventListener ("input", function (event) { + if (event.inputType === "insertFromPaste") { + event.preventDefault (); + tokenizeText (inputElement, options, tokenInput); + } + }); + /* tokenize existing input text */ if (inputElement.value.length > 0) { tokenizeText (inputElement, options, tokenInput); |