V157b order status comments have additional empty lines between the text
V157b responsive classic
When I add comments to update a customer order status it looks OK but when I send the email it is not wsywig, there are additional empty lines added to my comments; the standard zen cart beginning and end in navy are OK.
When I go back in admin and check the comments they also now have these additional empty lines.
My text editor is CKEditor.
I use the same text editor with the same settings to write product descriptions with no additional empty lines added.
Here is a test in the German language, I get the same effect in English; maybe I can configure the text editor somewhere?
Sehr geehrte(r) marton hasenberg,
Bestellnummer: 1786
Bestelldetails
Bestelldatum: Mittwoch, 27. Januar 2021
Die Kommentare für Ihre Bestellung lauten:
This is a test to check
how does it look?
Just a status comment
Usually, I add a discount for repeat orders.
Der Status Ihrer Bestellung hat sich nicht ge�ndert:
Aktueller Status: Bearbeitung
Bitte antworten Sie auf diese E-Mail, wenn Sie Fragen haben.
Simones Hunde Design
Re: V157b order status comments have additional empty lines between the text
This is a result of continued oversanitization. There is/has been some improvement, but there still is (as indicated) these extra lines.
Changing the editor's mode to "source mode" I believe would allow entering the content without the html characters including the extra line endings... I likely am wrong about how to not have those extra spaces, though wouldn't be the first time.
Re: V157b order status comments have additional empty lines between the text
Extra sanitization is applied to the "first" comment on any order. This is in case the customer enters anything malicious in it, so that it can't negatively harm your store.
Subsequent comments are normally only entered via an Admin and thus the sanitization is less aggressive.
Re: V157b order status comments have additional empty lines between the text
Quote:
Originally Posted by
mc12345678
This is a result of continued oversanitization. There is/has been some improvement, but there still is (as indicated) these extra lines.
Changing the editor's mode to "source mode" I believe would allow entering the content without the html characters including the extra line endings... I likely am wrong about how to not have those extra spaces, though wouldn't be the first time.
You mean when I write the comment in Admin to click on the "source" box above right?
Tried that but sadly the same issue, you will have to go down the mine and look for another nugget with a fix. :)
Is it possible to configure the CKeditor anywhere? There is no CK entry in admin/configuration in English or German.
I am using a new 157b installation.
Re: V157b order status comments have additional empty lines between the text
Quote:
Originally Posted by
marton_1
Is it possible to configure the CKeditor anywhere?
/editors/ckeditor/config.js
Re: V157b order status comments have additional empty lines between the text
I tried commenting out the AutoParagraph but it did not help
When I write my comment and look at it in source mode it looks like this
Code:
<p>This is a test<br />
try two lines</p>
<p>how does this look</p>
Then I send it and it now looks like this
Code:
<p>This is a test<br /><br />
try two lines</p><br />
<br />
<p>how does this look</p>
Somehow it has picked up some extra <br />s
Re: V157b order status comments have additional empty lines between the text
Quote:
Originally Posted by
marton_1
I tried commenting out the AutoParagraph but it did not help
When I write my comment and look at it in source mode it looks like this
Code:
<p>This is a test<br />
try two lines</p>
<p>how does this look</p>
Then I send it and it now looks like this
Code:
<p>This is a test<br /><br />
try two lines</p><br />
<br />
<p>how does this look</p>
Somehow it has picked up some extra <br />s
There's most likely a call to nl2br (converting new-lines to <br>'s) somewhere in the processing.