mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Display emojies in posts and comments
This commit is contained in:
@ -225,9 +225,15 @@ ComunicWeb.components.comments.ui = {
|
||||
var commentContent = createElem2({
|
||||
appendTo: commentText,
|
||||
type: "div",
|
||||
class: "comment-content",
|
||||
innerHTML: infos.content
|
||||
});
|
||||
|
||||
//Parse emojies
|
||||
ComunicWeb.components.emoji.parser.parse({
|
||||
element: commentContent
|
||||
});
|
||||
|
||||
//Add comment image (if any)
|
||||
if(infos.img_url != null){
|
||||
|
||||
|
@ -720,7 +720,10 @@ ComunicWeb.components.posts.ui = {
|
||||
innerHTML: infos.content
|
||||
});
|
||||
|
||||
|
||||
//Parse emojies
|
||||
ComunicWeb.components.emoji.parser.parse({
|
||||
element: postContent
|
||||
});
|
||||
|
||||
//Add bottom elements container
|
||||
var bottomArea = createElem2({
|
||||
|
Reference in New Issue
Block a user