From 7efbf28b8cef8d80cd600a7529b13f62548e7d00 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 3 Aug 2021 16:22:23 +0530 Subject: [PATCH] fixed bug with edits not preserving text formatting --- new.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new.html b/new.html index c55f1f4..bd40926 100644 --- a/new.html +++ b/new.html @@ -2077,9 +2077,9 @@ const taskDetails = {} if(e.target.closest('.task-description')){ taskDetails['taskTitle'] = taskTitle - taskDetails['taskDescription'] = DOMPurify.sanitize(e.target.textContent.trim()) + taskDetails['taskDescription'] = DOMPurify.sanitize(e.target.innerText.trim()) }else if(e.target.closest('.task-title')){ - taskDetails['taskTitle'] = DOMPurify.sanitize(e.target.textContent.trim()) + taskDetails['taskTitle'] = DOMPurify.sanitize(e.target.innerText.trim()) taskDetails['taskDescription'] = taskDescription } RIBC.manage.editTaskDetails(taskDetails, currentProject, currentBranch, currentTask.dataset.taskId)