close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Cookies Toolkit Not Restoring HTML-Editor Field

Thread began 1/21/2010 9:26 am by Sailors | Last modified 1/15/2012 5:55 pm by Sailors | 4414 views | 5 replies


Originally Said By: Eric Mittman
  I have done some testing on this and can confirm that HTML Editor values do not get set properly when coming from a cookie. I have logged a bug for this but I was not able to find a way to get the cookies to work with the HTML Editor instance.

As a workaround I was able to store the HTML Editor value in a session variable, then I set the initial value of the editor to this session variable. This seemed to work out ok.

On the page that the form is posting to you would add in a piece of code to the top of the page like this:

<?php if(!session_id()) session_start();

$_SESSION['test_val'] = $_POST['test'];

Then in your HTML Editor instance use this as the initial value code:

<?php echo ((isset($_SESSION["test_val"]))?$_SESSION["test_val"]:""); ?>

You will need to update the word 'test' in these code examples with the name of your editor. If you have any problem with this let us know and post back with the pages in question and we can show you how to add this.  

Hi Eric,

Thanks for the reply. Another issue I'm having with this is when I click the back button the value stored in the session gets restored in the editor. But when there's a space at the beginning of the value stored in the session the editor doesn't convert it back to space but puts the mark-up #&160 ; at the beginning. Is there a way to overcome this issue?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...