Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - WYSIWYG editor bug & fix!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WYSIWYG editor bug & fix!

 Post Reply Post Reply
Author
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post Topic: WYSIWYG editor bug & fix!
    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



Edited by fernan82
FeRnAN
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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"

Back to Top
fernan82 View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 17 November 2002
Location: United States
Status: Offline
Points: 362
Post Options Post Options   Thanks (0) Thanks(0)   Quote fernan82 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.