OpenCart 3 native WYSIWYG editor bad html
Posted: Fri Dec 22, 2017 8:30 pm
Hi!
I have had to manually edit the html for my information pages. This due to a really extensive HTML write out by the WYSIWYG editor. It is kinda like it takes what the CSS says, and then puts it in html. But worse.
Examples:
<p style="line-height: 1.2; margin-top: 0pt; margin-bottom: 5pt; background-color: rgb(255, 255, 255);" dir="ltr"><span style="background-color: transparent; font-family: Arial; font-size: 20pt; white-space: pre-wrap;">HEADLINE</span><br></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">ROW TEXT</span></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="font-family: Arial; font-size: 14.66px; white-space: pre-wrap;">ANOTHER ROW TEXT</span><font face="Arial"><span style="font-size: 14.66px; white-space: pre-wrap; background-color: rgb(255, 255, 255);"> </span></font></p><p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><font face="Arial"><span style="font-size: 14.66px; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><br></span></font>
<h1 style="line-height: 1.2; margin-top: 20pt; margin-bottom: 5pt; background-color: rgb(255, 255, 255);" dir="ltr">HEADLINE<br></h1>
This is what I get in code view after writing in the wysiwyg editor. Cleaning this up, and making the text appear as it is supposed to is a real hassle.
What can I do about this?
Thank you!
I have had to manually edit the html for my information pages. This due to a really extensive HTML write out by the WYSIWYG editor. It is kinda like it takes what the CSS says, and then puts it in html. But worse.
Examples:
<p style="line-height: 1.2; margin-top: 0pt; margin-bottom: 5pt; background-color: rgb(255, 255, 255);" dir="ltr"><span style="background-color: transparent; font-family: Arial; font-size: 20pt; white-space: pre-wrap;">HEADLINE</span><br></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;">ROW TEXT</span></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="font-family: Arial; font-size: 14.66px; white-space: pre-wrap;">ANOTHER ROW TEXT</span><font face="Arial"><span style="font-size: 14.66px; white-space: pre-wrap; background-color: rgb(255, 255, 255);"> </span></font></p><p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><font face="Arial"><span style="font-size: 14.66px; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><br></span></font>
<h1 style="line-height: 1.2; margin-top: 20pt; margin-bottom: 5pt; background-color: rgb(255, 255, 255);" dir="ltr">HEADLINE<br></h1>
This is what I get in code view after writing in the wysiwyg editor. Cleaning this up, and making the text appear as it is supposed to is a real hassle.
What can I do about this?
Thank you!