Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Rich Text Editor Display from Database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedRich Text Editor Display from Database

 Post Reply Post Reply
Author
jonance View Drop Down
Newbie
Newbie


Joined: 12 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jonance Quote  Post ReplyReply Direct Link To This Post Topic: Rich Text Editor Display from Database
    Posted: 12 November 2004 at 4:43am

Hi,

I have finally figured out how to display the html that I have programmed the  rich text editor to save to my database.  But i want to have the ability to allow a client to update this info.  But when i populate the text box...i see the html CODE instead of the WYSIWYG.  I want to have them be able to see it like they would if they had just created it...in WYSIWYG mode.  Is this possible.  what do i need to change to get this result?

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: 12 November 2004 at 10:53am
The WYSIWYG editor uses the file textbox.asp as the text area, you need to place the HTML into this file as if it where a nromal HTML page.
Back to Top
jonance View Drop Down
Newbie
Newbie


Joined: 12 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jonance Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 11:28am

I have done this and can get the html code to come up as the initial value in the box....but i can't get it to show as a web page would (WYSIWYG) style.  It shows all the tags.  For instance instead of seeing <strong>test</strong> i want them to see just test already bolded and in WYSIWYG format.  I want the pics to actually show, not the html to display them.  Is this possible?

Thanks,
John

Back to Top
jonance View Drop Down
Newbie
Newbie


Joined: 12 November 2004
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jonance Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 11:31am
By the way...it seems to do just that when i put html directly in the textbox.asp file.  But when i have it pull the html from my database (which is what i need to do), it shows in the RTE as pure html and doesn't apply the tags...
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: 12 November 2004 at 11:46am
Not sure what you are doing, but you are doing something wrong.

Maybe a link to have a look would help.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 12 November 2004 at 1:00pm
how are your values stored in the database? Are they stored as example <strong>yourtext</strong> ??
If that is the case the rte will not display it, you would need to htmldecode it before displaying...
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.