htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
SSL + htmlArea


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.

 


bscoder
Novice

Nov 10, 2002, 9:30 AM

Post #1 of 18 (18944 views)
Shortcut
SSL + htmlArea Can't Post

Anyone using this on SSL encrypted pages? If so, how did you get around IE spitting out "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?"

Of course, I did try setting _editor_url to "https://...", but that seems to change nothing at all.

Forgive me if this is mentioned somewhere that I didn't look. =)


Dave
Staff / Moderator


Nov 14, 2002, 6:41 PM

Post #2 of 18 (18847 views)
Shortcut
Re: [bscoder] SSL + htmlArea [In reply to] Can't Post

Hmm, I'm not really sure what's causing that, I'll put it on our bug list and look into it. Thanks for the report!

Dave Edis - Senior Developer
interactivetools.com


gw128
New User

Nov 24, 2002, 9:39 AM

Post #3 of 18 (18812 views)
Shortcut
Re: [Dave] SSL + htmlArea [In reply to] Can't Post

After digging around an hour i solved this problem Wink

I've tried this fix only on htmlArea2.0 (last beta)

First: you have to create a blank html (call it blank.html) and put it in your _editor_url/popups directory.

Then open editor.js file and in function editor_setmode change


Code
 var RichEdit   = '<iframe ID="_' +objname+ '_editor"    style="width:' +editor_obj.style.width+ '; height:' +editor_obj.style.height+ ';"></iframe>';



to


Code
   var RichEdit   = '<iframe src="' + _editor_url + 'popups/blank.html' + '" ID="_' +objname+ '_editor"    style="width:' +editor_obj.style.width+ '; height:' +editor_obj.style.height+ ';"></iframe>';

That's it. No more annoying popup.


Dave
Staff / Moderator


Nov 25, 2002, 12:39 PM

Post #4 of 18 (18795 views)
Shortcut
Re: [gw128] SSL + htmlArea [In reply to] Can't Post

>After digging around an hour i solved this problem

Hey, that's a good solution, thanks! I'll put it in the next release.

Dave Edis - Senior Developer
interactivetools.com


Dave
Staff / Moderator


Dec 3, 2002, 3:22 PM

Post #5 of 18 (18758 views)
Shortcut
Re: [gw128] SSL + htmlArea [In reply to] Can't Post

After playing around with this a while, I realized that it changes the behaviour of the back button. Clicking back goes back first in the iframe, you need to click back again to go back in the main page.

I think an improvement would be to have the default blank.html page and then update it's contents from javascript instead of using document.open, document.write, document.close to update it like we do. The only problem is we need some code to update the headers. It's easy enough to update the body with body.innerHTML but we need to update the <style> tags in the headers as well.

If anyone has any suggestions or code please feel free to post.

Dave Edis - Senior Developer
interactivetools.com


nburka
New User

Feb 5, 2003, 2:45 PM

Post #6 of 18 (18419 views)
Shortcut
Re: [Dave] SSL + htmlArea [In reply to] Can't Post

I managed to fix this by adding a little javascript to the blank.html file. The blank.html doesn't actually load on page load (it's overridden by the new wysiwyg document created through javascript), so by initiating a manual javascript back method only affects the case where you've clicked your back button.

<html>
<body>
<script language="javascript1.2">
window.history.back();
</script>
</body>
</html>


Dave
Staff / Moderator


Feb 6, 2003, 6:09 PM

Post #7 of 18 (18391 views)
Shortcut
Re: [nburka] SSL + htmlArea [In reply to] Can't Post

Look like a great solution! I'm going to play with it. Thanks! : )

Dave Edis - Senior Developer
interactivetools.com


fetlock
Novice

Feb 27, 2003, 11:51 AM

Post #8 of 18 (18204 views)
Shortcut
Re: [Dave] SSL + htmlArea [In reply to] Can't Post

Could div be used instead of iframe? Would that solve both the back issue and the error?

(I've used other similiar editors that use div for their contentEditable and don't error in the situation, and I'd like to know.)


ChrisDotNetUser
Novice

May 12, 2003, 11:04 AM

Post #9 of 18 (17431 views)
Shortcut
Re: [fetlock] SSL + htmlArea [In reply to] Can't Post

I've noticed a blank.html file already provided when I downloaded the v 2.3 of HTMLArea. Also, there is some code commented out that seems related (src = , etc.). Please advise. I'd like to implement this fix discussed in this thread - but want to confirm the starting point. Thanks.


tcamos
Novice

May 19, 2003, 5:43 PM

Post #10 of 18 (17279 views)
Shortcut
Post deleted by tcamos [In reply to]

 


Benjamin
Staff


May 22, 2003, 2:08 PM

Post #11 of 18 (17210 views)
Shortcut
Re: [tcamos] SSL + htmlArea [In reply to] Can't Post

Hey guys,

Yes, the blank.html file in the /popups directory seems to have been placed there for this purpose. And even if it wasn't, it can double up for this, too.

I tried the above solution and it worked fine for me... all I did was copy & paste that new line from the above post into the editor.js file (in the editor_setmode function), removed the old line, and hey presto - no popup confirmation window. I'm really not sure what to suggest, besides the above... perhaps post your editor.js file to verify the change you made was correct.
Ben
interactivetools.com


abarsami
Novice

May 22, 2003, 9:09 PM

Post #12 of 18 (17195 views)
Shortcut
Re: [Dave] SSL + htmlArea [In reply to] Can't Post

I tried the blank.html page... and it works, but with problems.
I have 6 htmlareas on one page - so if I click back -- I have to click back 6 times.

Does anyone have a solution that fixes this problem without the back problem?

Oh and htmlarea is awesome... way to go guys.


(This post was edited by abarsami on May 22, 2003, 9:17 PM)


vadim
New User

Dec 7, 2003, 10:10 AM

Post #13 of 18 (14509 views)
Shortcut
Re: [abarsami] SSL + htmlArea: HTMLArea-3.0-beta: IE+SSL fix [In reply to] Can't Post

To fix it in the HTMLArea-3.0-beta:

1) make the popups/blank.html not just "<html></html>"
but rather "<html><body></body></html>"

2) htmlarea.js: after this line:
var iframe = document.createElement("iframe");
(should be around line 585) the following:
iframe.src = this.popupURL("blank.html");

3) Fixing the same issue for the Spell Checker pluging:
3.1 cp popups/blank.html plugins/SpellChecker/
3.2 in plugins/SpellChecker/spell-check-ui.html
replace the line:
<iframe src="about:blank" width="100%" height="100%"
with the following:
<iframe src="blank.html" width="100%" height="100%"

Unfortunately, this doesn't address the 'Back' button
issue in Mozilla. Works fine in IE though.

Best of luck,
Vadim Jelezniakov


Artur
New User

Jan 15, 2004, 4:08 PM

Post #14 of 18 (13852 views)
Shortcut
Re: [vadim] SSL + htmlArea: HTMLArea-3.0-beta: IE+SSL fix [In reply to] Can't Post

Instead of using blank.html the row

iframe.src="javascript:void(0);";
after
var iframe = document.createElement("iframe");

solved the problem for me (ie 6.0)


goring_gap
New User

May 18, 2004, 4:35 AM

Post #15 of 18 (9383 views)
Shortcut
Re: [tcamos] SSL + htmlArea [In reply to] Can't Post

This fix is great - thanks. I get the same secure and unsecure warning when loading an image though. Any ideas?

cheers

Simon


goring_gap
New User

May 18, 2004, 4:46 AM

Post #16 of 18 (9381 views)
Shortcut
Re: [goring_gap] SSL + htmlArea [In reply to] Can't Post

Re: Image laoder problem.

From taking a look at popups/insert_image.html, there seems to be lots of iframe calls. Not knowing anything about iframes, do I simple use the


Code
 iframe src="' + _editor_url + 'popups/blank.html' + '"

fix mentioned above or is that crazy!

cheers

Simon


goring_gap
New User

May 18, 2004, 9:16 AM

Post #17 of 18 (9360 views)
Shortcut
Re: [goring_gap] SSL + htmlArea [In reply to] Can't Post

Re: secure/unsecure message

I used Artur's fix above for the image loader as well and it seems to work ok. I must stress, that I have not fully tested this yet!

in popups/insert_image.html, replace


Code
                   <td> 
<iframe class="lister" name="lister" marginwidth="0" marginheight="0"></iframe>
</td>
<td>
<iframe class="viewer" name="viewer" marginwidth="0" marginheight="0"></iframe>
</td>



with


Code
                   <td> 
<iframe src="javascript:void(0);" class="lister" name="lister" marginwidth="0" marginheight="0"></iframe>
</td>
<td>
<iframe src="javascript:void(0);" class="viewer" name="viewer" marginwidth="0" marginheight="0"></iframe>
</td>



cheers

Simon


klaatu
New User

Jun 7, 2004, 4:53 AM

Post #18 of 18 (8698 views)
Shortcut
Re: [goring_gap] SSL + htmlArea [In reply to] Can't Post

[HTMLArea-3.0-rc1] I was not able to suppress the spell checker warning popup on my ssl page with either "src="blank.html" or src="javascript:void(0);" (although the main popup from htmlarea.js and the image loader popup went away just fine) The result is that the text list from the cgi opens in a new separate window, detached from spell-check-ui.html. In order to prevent this, I had to use target= as well...

<iframe src="blank.html" width="100%" height="100%" id="i_framecontent" name="framecontent" target="framecontent">

 
 
 


Search for (options)