diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-09-25 18:30:26 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-09-25 18:30:26 +0300 |
commit | c4fd729b34910cf247f0a7ddfd473e5040b0b6bf (patch) | |
tree | 35b6277665846f0a6bbf82948f355c42480188a9 /client/components/main/editor.js | |
parent | fb79c8786ae32d6d2d46738815ed2b5f43a3f870 (diff) | |
download | wekan-c4fd729b34910cf247f0a7ddfd473e5040b0b6bf.tar.gz wekan-c4fd729b34910cf247f0a7ddfd473e5040b0b6bf.tar.bz2 wekan-c4fd729b34910cf247f0a7ddfd473e5040b0b6bf.zip |
Remove emoji support, because it breaks MAC addresses, urls, code etc.
Thanks to xet7 ! Closes #1248, closes #743, closes #643, closes #323
Diffstat (limited to 'client/components/main/editor.js')
-rwxr-xr-x | client/components/main/editor.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 5987b772..ea24f518 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -4,25 +4,6 @@ Template.editor.onRendered(() => { autosize($textarea); $textarea.escapeableTextComplete([ - // Emoji - { - match: /\B:([\-+\w]*)$/, - search(term, callback) { - callback(Emoji.values.map((emoji) => { - return emoji.includes(term) ? emoji : null; - }).filter(Boolean)); - }, - template(value) { - const imgSrc = Emoji.baseImagePath + value; - const image = `<img src="${imgSrc}.png" />`; - return image + value; - }, - replace(value) { - return `:${value}:`; - }, - index: 1, - }, - // User mentions { match: /\B@([\w.]*)$/, |