TinyPortal
Development => Feedback => Bugs/Errors => Topic started by: bigb on February 23, 2009, 11:49:11 PM
I've noticed a difference in the way articles are being saved within the database. In earlier versions of TP my test article was save like this:
[code]<p><strong><font size="6">This is a basic test article 1</font></strong><br />
</p>
<p><strong><font color="#FF0000" size="4">This is a basic test article - - This is a basic test article - -</font></strong> The story about the 2004 STAR winning kingfish and the 2004 Deep Sea Roundup winning kingfish is not all that much different from countless other tall tales about big fish, except for <br />
</p>
Now in TP version 1. 0 beta 3 the same article after it is re-saved looks like this:
<p><strong><font size="6">This is a basic test article 1</font></strong><br />
</p>
<p><strong><font color="#FF0000" size="4">This is a basic test article - - This is a basic test article - -</font></strong> The story about the 2004 STAR winning kingfish and the 2004 Deep Sea Roundup winning kingfish is not all that much different from countless other tall tales about big fish, except for <br />
</p></p>
I'm not sure which one is supposed to be correct. This change happens with or without the use of the WYSIWYG editor.
I've also found that if your using the WYSIWYG editor and you view the HTML code using the <> and you do this more than two or three times the code changes in things get lost.
SMF version: SMF ver. 1.1.8
TP version: TP ver. 1.0 beta 3
Mod Name Version
Anti-Spam Verification Questions 1.02
SMF Gallery Lite 1.9.4
Googlebot & Spiders Mod 2.0.4
SMF 1.0.16 / 1.1.8 Update 1.0
Users Online Today Mod 1.4.0
TinyPortal 1.075
Also happens on my test site with No mods installed except TP 1 beta 3
Thanks.
[/code]
- Editor was cleaning up inline styles and tag attributes. Fixed.
- HTML code was not converted back from entities.Fixed.
The trouble was the editor being a little too happy to clean up the code, where its not needed.
As for articles saved, it should be on regular tag form, not entities.