mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Smiley are parsed in conversation element
This commit is contained in:
		@@ -141,6 +141,7 @@ ComunicWeb.components.conversations.chatWindows = {
 | 
			
		||||
			class: "form-control",
 | 
			
		||||
			placeholder: "New message...",
 | 
			
		||||
		});
 | 
			
		||||
		inputText.maxLength = 200;
 | 
			
		||||
 | 
			
		||||
		//Enable textarea 2.0 on the message
 | 
			
		||||
		var textarea2 = new ComunicWeb.components.textarea();
 | 
			
		||||
@@ -747,7 +748,7 @@ ComunicWeb.components.conversations.chatWindows = {
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		//Add text message
 | 
			
		||||
		createElem2({
 | 
			
		||||
		var textMessage = createElem2({
 | 
			
		||||
			appendTo: messageTargetElem,
 | 
			
		||||
			type: "span",
 | 
			
		||||
			innerHTML: messageInfos.message,
 | 
			
		||||
@@ -774,6 +775,11 @@ ComunicWeb.components.conversations.chatWindows = {
 | 
			
		||||
			userAccountImage.src = userInfos.accountImage;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		//Parse emojies in text message
 | 
			
		||||
		ComunicWeb.components.emoji.parser.parse({
 | 
			
		||||
			element: textMessage,
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		//Enable (again) slimscrool
 | 
			
		||||
		$(convInfos.box.messagesArea).slimscroll({
 | 
			
		||||
			height: "250px",
 | 
			
		||||
 
 | 
			
		||||
@@ -18,7 +18,7 @@ ComunicWeb.components.emoji.parser = {
 | 
			
		||||
	 * Parse emojies
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param {Object} infos Informations about the area to parse
 | 
			
		||||
	 * @info {HTMLElement} element The element to parser
 | 
			
		||||
	 * @info {HTMLElement} element The element to parse
 | 
			
		||||
	 * @return {Boolean} True for a success
 | 
			
		||||
	 */
 | 
			
		||||
	parse: function(infos){
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user