diff --git a/frontend/src/components/MakeSqueak/index.js b/frontend/src/components/MakeSqueak/index.js index f319abfa..36706c52 100644 --- a/frontend/src/components/MakeSqueak/index.js +++ b/frontend/src/components/MakeSqueak/index.js @@ -42,6 +42,12 @@ const MakeSqueak = (props) => { setSigningProfile(e.value); } + const pastePlainText = (e) => { + e.preventDefault(); + var text = e.clipboardData.getData('text/plain'); + document.execCommand('insertText', false, text); + } + const submitSqueak = () => { // TODO: toggle modal off here. @@ -52,8 +58,6 @@ const MakeSqueak = (props) => { if (!squeakText.length) { return } - let hashtags = squeakText.match(/#(\w+)/g) - const values = { signingProfile: signingProfile.getProfileId(), description: squeakText, @@ -124,7 +128,7 @@ const MakeSqueak = (props) => {