mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Display emojies in posts and comments
This commit is contained in:
		@@ -27,4 +27,10 @@
 | 
			
		||||
.post-comments .delete-comment-link:active,
 | 
			
		||||
.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({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user