Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: General: General:
Users must click "Back" twice when using WYSIWYG

 

 


Giskard
New User

Feb 8, 2005, 2:31 PM

Post #1 of 2 (1860 views)
Shortcut
Users must click "Back" twice when using WYSIWYG Can't Post

Hello,

After attempting to modify the initIframe() function in the "HTMLArea.prototype.generate" prototype, I've noticed that when the content is written to the iFrame, it essesntially creates a browser history item.

The problem this creates is that if a user that wants to go to the previous page (by hitting "Back" in their browser) they must click "Back" twice. The first click unloads the WYSIWYG data; the second returns to the previous URL.

Does anyone have any ideas for a workaround?

Here's the code:

Code
if (!editor.config.fullPage) { 
doc.open();
var html = "<html>\n";
html += "<head>\n";
if (editor.config.baseURL)
html += '<base href="' + editor.config.baseURL + '" />';
html += "<style>" + editor.config.pageStyle +
" html,body { border: 0px; }</style>\n";
html += "</head>\n";
html += "<body>\n";
html += editor._textArea.value;
html += "</body>\n";
html += "</html>";
doc.write(html);
doc.close();
} else {
...snip...
}


Thanks is advance!

-Giskard


ross
Staff / Moderator


Feb 8, 2005, 4:07 PM

Post #2 of 2 (1856 views)
Shortcut
Re: [Giskard] Users must click "Back" twice when using WYSIWYG [In reply to] Can't Post

Hi Giskard.

Thanks for posting and welcome to the board!

We have recently dedicated an entire website to htmlArea which has its own forums and I think that if you could post this questions there too, you would have a better chance at getting a great answer.

Not being an expert with JavaScript, I am not exactly sure if there is a way around this. I know that it also happens when you are working with regular frames.

Hopefully between our community and the htmlarea community you should be able to get some help Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4