Print Page | Close Window

WYSIWYG editor bug & fix!

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=3044
Printed Date: 01 April 2026 at 7:26am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: WYSIWYG editor bug & fix!
Posted By: fernan82
Subject: WYSIWYG editor bug & fix!
Date Posted: 26 May 2003 at 8:29pm

I've had the problem since I upgraded to v7 that if the background color of the WYSIWYG editor is not the same as the posts table background (which it can't always be the same since even and odd posts are different colors and there's only one color for the WYSIWYG editor ) the text on the post will be highlighted with the background of the WYSIWYG editor....... example here

I posted a couple times about it and was told that the bug was in the WYSIWYG and not on the forum and that the only solution was changing the background of the WYSIWYG editor, i using different color but it would always happen sometimes cuz even and odd posts have different backgrounds........

Well now looking at the code i figured there's a pretty simple way of fixing this problem by just adding the following on functions_format_post.asp around line 68:


 Dim lngStartPos
 Dim strTempMessage

 Do While InStr(1, strMessage, "style=""BACKGROUND-COLOR:""", 1) > 0 

  'Find the start position in the message of the style="BACKGROUND-COLOR: #123456" code
  lngStartPos = InStr(1, strMessage, "style=""BACKGROUND-COLOR:""", 1)

  'Read in the code to be converted into a hyperlink from the message
  strTempMessage = Trim(Mid(strMessage, lngLinkStartPos, ((lngStartPos + 33) - lngStartPos)))
  strMessage = Replace(strMessage, strTempMessage, "", 1, -1, 1)
 Loop

that way when the post is formatted it'll check if the background of the post editor has been exported to the post and if it has it'll remove it! It would be nice if this problem could be addressed on the next release



-------------
FeRnAN
http://www.danasoft.com/">



Replies:
Posted By: WebWiz-Bruce
Date Posted: 27 May 2003 at 1:40am

This solution looks custom to your problem and so probally woudn't help others unless that background colour is identical to your own.

Try removing the following from line 211 of the file IE_textbox.asp:-

text="#000000"



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: fernan82
Date Posted: 27 May 2003 at 7:07pm

I removed it, can't tell if it makes a difference cuz it shouldn't happen anymore anyways......

i can't tell why this thing happens only on my forum, i guess the background colors, i've triend changing the background of the WYSIWYG to different colors but that didn't help......

probably if more people where using dark skins this would happen to more people.....



-------------
FeRnAN
http://www.danasoft.com/">



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net