summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-09-25 18:30:26 +0300
committerLauri Ojansivu <x@xet7.org>2017-09-25 18:30:26 +0300
commitc4fd729b34910cf247f0a7ddfd473e5040b0b6bf (patch)
tree35b6277665846f0a6bbf82948f355c42480188a9 /client
parentfb79c8786ae32d6d2d46738815ed2b5f43a3f870 (diff)
downloadwekan-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')
-rw-r--r--client/components/main/editor.jade5
-rwxr-xr-xclient/components/main/editor.js19
2 files changed, 2 insertions, 22 deletions
diff --git a/client/components/main/editor.jade b/client/components/main/editor.jade
index f10d64a1..31f533e6 100644
--- a/client/components/main/editor.jade
+++ b/client/components/main/editor.jade
@@ -9,6 +9,5 @@ template(name="editor")
template(name="viewer")
.viewer
+mentions
- +emoji
- +markdown
- {{> UI.contentBlock }}
+ +markdown
+ {{> UI.contentBlock }}
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.]*)$/,