From 69a29ad05da0ce8eaf135b4ca3512c81c1276d17 Mon Sep 17 00:00:00 2001 From: Metabox Date: Tue, 10 Sep 2019 18:15:07 +1000 Subject: [PATCH] fix:Line breaks stripped during edit. --- htdocs/cgi-bin/wsrc/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index dea3a6d..669566e 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -307,7 +307,7 @@ function edit(row) { $("#el").val(decodeToHTMLText(tag.val())); } else { - $("#el").val(decodeToText(log.text())); + $("#el").val(decodeToText(log.html())); } $("#ed").val(ed_v.val() + " " + et_v.html()); //Time field @@ -724,7 +724,7 @@ function loadRTFResult(content, result, prms, quill) { function editorBackground(reset){ - var css = $("#editor-container").prop('style'); + var css = $("#editor-container").prop('style'); if(reset){ css.backgroundColor = DEF_BACKGROUND; $("#fldBG").val(DEF_BACKGROUND); -- 2.34.1