mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Can add emojies on posts
This commit is contained in:
@ -875,7 +875,7 @@
|
||||
|
||||
if (selection.ce) { // if contenteditable
|
||||
el.focus();
|
||||
document.execCommand('insertText', false, emo);
|
||||
el.innerHTML += emo; //COMUNIC EDIT document.execCommand('insertText', false, emo);
|
||||
} else {
|
||||
var textBefore = val.substring(0, selection.start);
|
||||
textBefore = textBefore.replace(/:\S*$/, '')
|
||||
|
Reference in New Issue
Block a user