htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Support Requests:
Users must click "Back" twice when using WYSIWYG


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


Giskard
New User

Feb 9, 2005, 6:48 AM

Post #1 of 1 (18680 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

 
 
 


Search for (options)