mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Display emojies in posts and comments
This commit is contained in:
parent
1740f6e123
commit
482cc11401
@ -28,3 +28,9 @@
|
||||
.post-comments .edit-comment-link:active {
|
||||
color: black;
|
||||
}
|
||||
|
||||
.post-comments .comment-content .emoji {
|
||||
float: none;
|
||||
height: 1em !important;
|
||||
width: auto !important;
|
||||
}
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user