mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +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 {
|
.post-comments .edit-comment-link:active {
|
||||||
color: black;
|
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({
|
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){
|
||||||
|
|
||||||
|
@ -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({
|
||||||
|
Loading…
Reference in New Issue
Block a user