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 12:26 pm by Sailors | Last modified 1/15/2012 8:55 pm by Sailors | 2917 views | 5 replies

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:
<?php if(!session_id()) session_start();

if(isset(
$_POST['test'])){
$_SESSION['test_val'] = $_POST['test'];
}
?>



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

php:
<?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.

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

Content

rating

Layout

rating

Ease of use

rating

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...