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 - Add-Ons:
New!! Open File from local disk.


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.

First page Previous page 1 2 Next page Last page  View All


Luis
Veteran

Jun 25, 2003, 3:41 AM

Post #1 of 40 (7427 views)
Shortcut
New!! Open File from local disk. Can't Post

I've integrated an ActiveX control to Open Files from local disk into HTMLArea. If somebody is interested, I'll gladly share the files.

See it working at http://webstationone.com/test/htmlarea


Don't give up!!
http://webstationone.com/test/htmlarea


Keller
New User

Jun 25, 2003, 8:19 PM

Post #2 of 40 (7389 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

I get an error on line 27 char 4 Automation server can't create object.


Luis
Veteran

Jun 25, 2003, 9:00 PM

Post #3 of 40 (7387 views)
Shortcut
Re: [Keller] New!! Open File from local disk. [In reply to] Can't Post

Hi Keller:

It requires you to have ActiveX enabled.

To enable ActiveX"

1.- On your browser's toolbar, click on Tools/Internet Options and select the tab labeled as Security.

2.- Select the green icon that reads Trusted Sites and click on the Sites button.

3.- At the prompt of the following window, write http://webstationone.com in the box labeled as Add this Web site to the zone

4.- Un-check the box that reads Require server verification (https://) for web sites in this zone and click OK

5.- Now, click on the button labeled as Custom Level and, from the next window enable the 5 ActiveX settings.

Note: Some antiviruses might prevent ActiveX controls to run.


Don't give up!!
http://webstationone.com/test/htmlarea


prenaud
User

Jun 26, 2003, 6:39 AM

Post #4 of 40 (7369 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis,

Thanks for this add-on. This is great.

Pierre

ezHTMLarea - http://fslactivities.sd61.bc.ca/ezHTMLarea/



prenaud
User

Jul 12, 2003, 8:58 AM

Post #5 of 40 (7144 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hey Luis,

Is there a way that users would get a warning when they don't have the proper ActiveX settings?

Pierre

ezHTMLarea - http://fslactivities.sd61.bc.ca/ezHTMLarea/



Luis
Veteran

Jul 12, 2003, 9:31 PM

Post #6 of 40 (7131 views)
Shortcut
Re: [prenaud] New!! Open File from local disk. [In reply to] Can't Post

For Word functions there is something. For the Open File it should too. I'll investigate.

In the meantime, you can make it a little bit more intuitive to the user, using a handle error function.
In the openpage.html popup, put this code just before function OpenFile

window.onerror = HandleError

function HandleError(message, url, line) {
var str = "An error has occurred in this dialog." + "\n\n"
+ "Error: " + line + "\n" + message+"\n"
+ "Please press CTRL+H and refer to the Enabling ActiveX Controls section at "
+ "the Appendix of the Help File.";
alert(str);
window.close();
return true;
}

To display the help file on CTRL+H, put this other code in
function editor_event(objname,runDelay)
of your editor.js

if (ctrlKey && (ord == 72) && editEvent.type == 'keydown') { // Cancels CTRL-h (IE Browser History)
editEvent.returnValue = false; editEvent.cancelBubble = true; //And sets it for Editor Help
window.showHelp(_editor_url + "popups/editor_help.htm"); return false;
}

Actually this doesn't detect if ActiveX is enabled, but since this is the most likely error to occur, it will work well.

I will enable it in my editor for you to test it.

Greetings


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Jul 12, 2003, 9:45 PM)


prenaud
User

Jul 13, 2003, 7:54 AM

Post #7 of 40 (7115 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Thanks Luis but believe it or not I just started to get those messages again when I try to modify my editor:

"The process cannot access the file because it is being used by another process."

Very frustrating.

Pierre

ezHTMLarea - http://fslactivities.sd61.bc.ca/ezHTMLarea/



prenaud
User

Jul 16, 2003, 1:04 PM

Post #8 of 40 (7027 views)
Shortcut
Re: [prenaud] New!! Open File from local disk. [In reply to] Can't Post

Thanks again Luis. I ended up using some alert messages.

Pierre

ezHTMLarea - http://fslactivities.sd61.bc.ca/ezHTMLarea/



mmcw
User

Aug 19, 2003, 2:07 AM

Post #9 of 40 (6787 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Does not work for me!

Won't do anything - but the error will not come also! Popup window - select file and submit but nothing happens?


Luis
Veteran

Aug 19, 2003, 2:58 AM

Post #10 of 40 (6781 views)
Shortcut
Re: [mmcw] New!! Open File from local disk. [In reply to] Can't Post

It works.

See it in my test page:

http://www.webstationone.com/test/htmlarea/

After enabling it, you might need to restart your computer.


Don't give up!!
http://webstationone.com/test/htmlarea


mmcw
User

Aug 19, 2003, 7:03 AM

Post #11 of 40 (6770 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

I do not get an error but also no alert! So you still do not know what to do?


Luis
Veteran

Aug 19, 2003, 6:41 PM

Post #12 of 40 (6735 views)
Shortcut
Re: [mmcw] New!! Open File from local disk. [In reply to] Can't Post

I know what to do long time ago. It works in my test site and can be reproduced in all my computers (Win 98, 2000, NT and XP -IE 6.0 SP2). Maybe your problem is in your own computer.

Didn't it work from my site? It's weird.


Don't give up!!
http://webstationone.com/test/htmlarea


sportlerer
Novice

Aug 20, 2003, 11:33 AM

Post #13 of 40 (6708 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

SlyHi Luis thats what Ive been waiting for! Angelic

Your new version works well.

But I can`t see the templates in my html area .

And I would like to delete some functions because I use the htmlarea for a kids-site .The image upload is the most important...

I tried it , but then nothing worked any more.

How can I do this?

Thanks


Luis
Veteran

Aug 20, 2003, 1:52 PM

Post #14 of 40 (6699 views)
Shortcut
Re: [sportlerer] New!! Open File from local disk. [In reply to] Can't Post

Hi Sportlerer:

The easiest way to disable uploading without messing the code too much is just adding a DISABLED attribute to the following lines in insert_image.html

<BUTTON ID=btnUpload style="left: 39.8em; top: 35.0647em; width: 7em; height: 2.2em; " type=reset tabIndex=45 onClick="UploadImages();" DISABLED>Upload Image</BUTTON>
<FIELDSET id=fldSpacing style="left: 24.9em; top: 34.0647em; width: 22.3em; height: 3.6em;" DISABLED>
<LEGEND id=lgdSpacing DISABLED>Upload new images here</LEGEND>


Make sure to comment out the upload option in context menus too.

Regarding Templates, they use SSI. Only pages with the allowed extension configured at the server (They don't work locally) can contain SSI. By default most of servers allow only pages with .shtml or .htm extension.

Here are some pointer that can help to identify the problem. I assume you didn't change the directory structure:

Try changing the extension of insert_template.html to insert_template.shtml or insert_template.htm

Try changing the include directive <!--#include virtual= to
<!--#include file=

If nothing works, ask your hosting provider or server administrator which extensions are allowed to include external files or ask him to add .html as an allowed extension.

And, as last resource, try changing each include directive with the full contents of each include file (.inc)

Let me know if some of these solved the problem.


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Aug 20, 2003, 1:53 PM)


sportlerer
Novice

Aug 21, 2003, 3:37 PM

Post #15 of 40 (6670 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Winkuups !Wink

Thanks for the support,

there was a misunderstanding

I meant that the image uploade function is the most important function and it is really wonderful!!!!!

Some other functions don?t work... the spell checker, the word inclusision, the help that doesn`t matter, but I would like to delete those buttons from the toolbar. Or the kids would be confused!!!

How can I do this?

The template function doesn`t work in every case you told me

... also not in your example,

I can use the templates in my programm when I take them in the directory where the files with the texarea are...

But this doesn t work with the template -button from the toolbar

I think this must be a direcrory problem???

But I really like the hhtml area

I don`t give up


In Reply To


prenaud
User

Aug 21, 2003, 4:51 PM

Post #16 of 40 (6668 views)
Shortcut
Re: [sportlerer] New!! Open File from local disk. [In reply to] Can't Post


In Reply To
Some other functions don?t work... the spell checker, the word inclusision, the help that doesn`t matter, but I would like to delete those buttons from the toolbar. Or the kids would be confused!!!

How can I do this?

In Reply To
Delete whatever you don't want under "this.toolbar = [" in the editor's file. Pierre

ezHTMLarea - http://fslactivities.sd61.bc.ca/ezHTMLarea/



Luis
Veteran

Aug 21, 2003, 10:08 PM

Post #17 of 40 (6656 views)
Shortcut
Re: [sportlerer] New!! Open File from local disk. [In reply to] Can't Post

Hi sportlerer:

I'm totally confused here. Everything works fine in my site.

First, the insert templates, the only requirements are SSI and the proper extensions.

Second, The help file works in three different ways: 1.- By Clicking the icon, 2.- By hitting CTRL+H or, 3.- By hitting F1. (when the cursor is inside the editor, otherwise it will show up the IE Browser's help)

Three, Open a Word File and Spellchecker require you have ActiveX enabled in your computer. Instructions to do it are in my help file (If you happen to make it work) or in the post number 2 of this page:

http://www.interactivetools.com/forum/gforum.cgi?post=16109

Of course, you also need to have Word installed in your computer.

As Prenaud already said, to disable buttons, just comment them out or erase them in this.toolbar.

greetings.


Don't give up!!
http://webstationone.com/test/htmlarea


sportlerer
Novice

Aug 22, 2003, 3:24 AM

Post #18 of 40 (6640 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi, excuse me,

do`n`t be confused,Pirate

Im a beginner and I don`t understand the meaning of

SSI and proper extensions.And Im german and my english is not very good.What`s that?

I would like to use the templates because I would like to change background colours and fit background images, for the kids

but the templates doesn`t work also in your example on my site.

SmileAll the other things I really need work fine.Smile

I don`t need the word and the help..

so I deleted the buttos as prenaud said

your support is wonderful

Ill to find the bug

have a nice weekend

sportlerer


Luis
Veteran

Aug 22, 2003, 11:22 AM

Post #19 of 40 (6626 views)
Shortcut
Re: [sportlerer] New!! Open File from local disk. [In reply to] Can't Post

Ok sportlerer.

SSI stands for Server Side Includes and I mean proper extensions the extensions of the file that are allowed for your server to contain SSI.

SSI don't work on local disk. The files must be in a real server.

Anyway, I'll send you a version which don't require SSI.


Don't give up!!
http://webstationone.com/test/htmlarea


sportlerer
Novice

Oct 23, 2003, 1:19 PM

Post #20 of 40 (6103 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Im still waiting for the version .

I only want to be able to change the backgroundcolour of the

saved documents.

Is there a solution?

Pleeaase help me

Have a nice weekend

sportlererCrazy


stervina
User

Oct 24, 2003, 10:53 AM

Post #21 of 40 (6079 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi luis

I have tested the possibility to open files from my computer, and it works fine. All the html files I have tried have been successfully imported into HtmlArea.

Thanks very much for deciding to share your popup menus. As I had got rid of all the the table operation icons, I sometimes had difficulty getting the right context menu when clicking in a cell, and all the more so as the table was full of information. Your new popup menu will be a very helpfull workaround.

I have one question about your color menus. The background option will only work on true html pages, including the HTML, HEAD, and BODY tags, but will not work on a CMS whose top-page is pre-formatted. My site only saves and displays the information typed into HtmlArea. I don't think I can changed anything in the pre-formatted Body tag, so that the background could be changed. Could you let me know ?
There is a work around as far as I am concerned. I can use table and cell-backgrounds.

Thanks for helping

Stervina Lannion France


Luis
Veteran

Oct 24, 2003, 11:32 AM

Post #22 of 40 (6074 views)
Shortcut
Re: [stervina] New!! Open File from local disk. [In reply to] Can't Post

Hi Stervina:

Nice to hear of you. In the textarea page, there are two hidden fields, which are intended to pass the attributes variable to your submission script.

I cannot tell you what exactly to do because first, I don't know which method you are using to create the pages you save from HTMLArea and Second, because I'm pretty sure you are using PHP, which I don't know.

What I can tell you is that it can be done, if you do it right. See my test site and submit the form several times with different backgrounds. You will realize that the background is got saved.

Regarding getting the attributes of an existing file, this is my next goal. Although it can be complicated, it's doable. I only need the time and the mood to do it.

Greetings


Don't give up!!
http://webstationone.com/test/htmlarea


stervina
User

Oct 24, 2003, 12:42 PM

Post #23 of 40 (6071 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Thanks for your quick reply

In fact yes, I am using PHP. All my web pages are built up by compiling three pieces of code.

1)The top page (including the meta information, the headers, the body tag, and left menu.

2) The information from a mysql data base, previously created by HtmlArea

3) The bottom page which closes all the tags, and displays the bottom menu.

I also performed another test. I just replaced my editor with yours. I noticed it didn't work. I can't get the focus. I can insert tables, but they look like bars, and when I switch to view code, all the code is stripped out

As I haven't changed anything in my form, this might be due to the missing hidden tags I haven't inserted yet.
So, I've switched back to mine. I've managed to get the table-operation menu to work perfectly.
My next step will be to get the color palettes to work the same.
You've also changed the code which displays the context-menus options.


document
.write('<div id='+objname+'Contents_CMenu style="display:none;"> ');
var Contents_CMenu= new Array(selectall,clearall,paste,find,separator,image,inserttable,insertform,separator,print,preview,separator,helpfile,about);
for (j = 0; j < Contents_CMenu.length; j++) {
document
.write(Contents_CMenu[j]);
}
document
.write('</div>');

I can't get your new routines to work properly. I have checked the new arrays. All options are declared.
Is there another bit of code that should be changed to get the new routines to work ? I think the code would be lighter with your new code. This the main reason for changing as far as I am concerned.


Thanks for helping

Stervina Lannion France


Luis
Veteran

Oct 24, 2003, 1:49 PM

Post #24 of 40 (6068 views)
Shortcut
Re: [stervina] New!! Open File from local disk. [In reply to] Can't Post

Hi stervina:

Take a look at the index2.html file. On top there are two variables declared. Failing to declare them, will crash the editor:
var MyBgColor ='#FFFFFF';
var MyBgImg ='';

These variables are called in several places in editor.js

There is also this piece of code which is intended to update the background values on output (plus the hidden fields I talked before) and the call to the function from the submit button.

<script>
function updateAttributes(){
document.myform.bgcolor.value=MyBgColor;
document.myform.background.value=MyBgImg;
}
</script>

The code for the context menus is the same as before, only that this time the context menu is built from an array, which allows to manage automatic height for the context menu without having to mess with the values everytime you add a new item, in addition to the substantially reduction of the file size.

Several files are affected. If you want to implement it succesfully, do it in the other way. I mean, take my files as a base and port your own functionality into them. It would be easier since you know exactly how your mods work and you don't know how mine do.

Anyway, if you have questions and I'm able to answer, it would be a pleasure to be of help.

Greetings.


Don't give up!!
http://webstationone.com/test/htmlarea


stervina
User

Oct 24, 2003, 2:09 PM

Post #25 of 40 (6066 views)
Shortcut
Re: [Luis] New!! Open File from local disk. [In reply to] Can't Post

Hi Luis

Thanks for helping.

In fact I missed the two variables. I have inserted them in my file, and your editor works perfectly on my site.

I will follow your advice to get mine to work.

Greetings

Stervina

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options)