Display emojies in posts and comments

This commit is contained in:
Pierre 2018-03-03 14:52:52 +01:00
parent 1740f6e123
commit 482cc11401
3 changed files with 16 additions and 1 deletions

View File

@ -28,3 +28,9 @@
.post-comments .edit-comment-link:active { .post-comments .edit-comment-link:active {
color: black; color: black;
} }
.post-comments .comment-content .emoji {
float: none;
height: 1em !important;
width: auto !important;
}

View File

@ -225,9 +225,15 @@ ComunicWeb.components.comments.ui = {
var commentContent = createElem2({ var commentContent = createElem2({
appendTo: commentText, appendTo: commentText,
type: "div", type: "div",
class: "comment-content",
innerHTML: infos.content innerHTML: infos.content
}); });
//Parse emojies
ComunicWeb.components.emoji.parser.parse({
element: commentContent
});
//Add comment image (if any) //Add comment image (if any)
if(infos.img_url != null){ if(infos.img_url != null){

View File

@ -720,7 +720,10 @@ ComunicWeb.components.posts.ui = {
innerHTML: infos.content innerHTML: infos.content
}); });
//Parse emojies
ComunicWeb.components.emoji.parser.parse({
element: postContent
});
//Add bottom elements container //Add bottom elements container
var bottomArea = createElem2({ var bottomArea = createElem2({