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:
Undo/Redo working as it should. Beautiful!!


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.

 


Luis
Veteran

Apr 9, 2003, 2:36 AM

Post #1 of 12 (6440 views)
Shortcut
Undo/Redo working as it should. Beautiful!! Can't Post

After some headaches and playing to guess how, I finally made Undo/Redo to work as it is suppossed to do. Beautiful!!Smile

-Unlimited Undo/Redo levels.
-Single Click.
-Undoes the whole typing, not letter by letter.

I just commented out the line that reads:
editor_updateOutput(objname);
in the piece of code below


// don't execute more than 3 times a second (eg: too soon after last execution)
if (this.tooSoon == 1 && runDelay >= 0) { this.queue = 1; return; } // queue all but urgent events
this.tooSoon = 1;
setTimeout(function(){
this.tooSoon = 0;
if (this.queue) { editor_event(objname,-1); };
this.queue = 0;
}, 333); // 1/3 second


//editor_updateOutput(objname);
editor_updateToolbar(objname);
}

I don't have any idea of what that line does, but after making several tests I did not realize any misbehaving in the editor.

If somebody knows what that line is supposed to do and if there is a reason for it to be not removed, please advise.

The only thing I noticed is that if you switch to fullscreen, the undo history is kept, but when you go back to normal editor mode the undo history is lost.

You can see it working at:
http://www.webstationone.com/test/htmlarea/index.html


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


Lionel
User

Apr 9, 2003, 2:42 AM

Post #2 of 12 (6433 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Hi, nice work you have done! Is your editor available for download? With English keyboard if possible.Angelic


Luis
Veteran

Apr 9, 2003, 3:15 AM

Post #3 of 12 (6429 views)
Shortcut
Re: [Lionel] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Hi Lionel!

Yes, of course it is available, but I strongly suggest you to wait until next week, when I plan to finish the two missing form elements. If it is a hurry, send me a private message and I'll gladly e-mail it to you. Regarding the keyboard, It is in Hebrew only, but you can easily disable it. My large to-do list includes one in Cyrillic, but it's at the bottom of the list.


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


eisa
User

Apr 9, 2003, 1:31 PM

Post #4 of 12 (6367 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Very nice work!

If I'm not wrong you are using ASP as a backend for your editor. I have made a small modification to the Choose Image function that you perhaps could be interested in.

You find it here:
http://www.interactivetools.com/forum/forum.cgi?post=9384

EiSa

http://www.savio.no/htmlarea/example.asp | Webdesign


Luis
Veteran

Apr 9, 2003, 9:06 PM

Post #5 of 12 (6343 views)
Shortcut
Re: [eisa] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Thanks for your offering. Very nice improvement. Unfortunatelly I cannot use ASP for two main reasons: 1.- I'm in a Unix server, 2.- (The most important) I don't know ASP. The image manager is in PHP and I'm using Perl for submission and database handling. Anyway, thanks again for willing to share your code. I appreciate your kindness.


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


Len_kranendonk
New User

Apr 10, 2003, 3:16 AM

Post #6 of 12 (6321 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post


In Reply To
The only thing I noticed is that if you switch to fullscreen, the undo history is kept, but when you go back to normal editor mode the undo history is lost.

History is also lost when switching to "View HTML source" and back.


Luis
Veteran

Apr 13, 2003, 7:00 PM

Post #7 of 12 (6220 views)
Shortcut
Re: [Len_kranendonk] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Hi Len_kranendonk!
After your message, I reviewed all available online editors I could find and it happens in all of them. Maybe this is another IE issue. If somebody knows how to solve it please advise.


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


bvoven
Novice

May 3, 2003, 6:49 PM

Post #8 of 12 (5998 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Luis, I think I figured out what editor_updateOutput(objname) does, at least on my site (which isn't available right now). When I disable editor_updateOutput(objname) any changes I make to the content aren't saved to the database. As soon as I enable it, everything works just fine! Any workaround available?


Luis
Veteran

May 6, 2003, 4:24 AM

Post #9 of 12 (5904 views)
Shortcut
Re: [bvoven] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

I'm surprised that is happening to you.
Are you sure you are doing it in the same place where I disabled it?

// don't execute more than 3 times a second (eg: too soon after last execution)
if (this.tooSoon == 1 && runDelay >= 0) { this.queue = 1; return; } // queue all but urgent events
this.tooSoon = 1;
setTimeout(function(){
this.tooSoon = 0;
if (this.queue) { editor_event(objname,-1); };
this.queue = 0;
}, 333); // 1/3 second


//editor_updateOutput(objname);
editor_updateToolbar(objname);
}


I've integrated several Article Managers in this way and everything works well. Have you tested it in another clean editor (The example you first downloaded, for example?) Try this option to make sure if this is or not what is affecting to your database. Thanks for the advise and let me know if you managed to solve it.


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


bvoven
Novice

May 6, 2003, 7:26 AM

Post #10 of 12 (5891 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

I am using ASP on an MS Access 10 database. I submit() the form using an button input type. When I comment out the line you mention (yes, the correct one), the contents of the textarea are not saved to the corresponding database fields, other input fields are though...

I know, odd...


sgrdaddy
Novice

Aug 27, 2003, 4:33 AM

Post #11 of 12 (5457 views)
Shortcut
Re: [bvoven] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

I have the same problem when commenting out that line. ( editor_updateOutput(objname); )
Im using the editor in a ASP / C# enviroment...
Does any of you guys know a good workaround?


ciaranclissmann
New User

Aug 16, 2004, 3:39 PM

Post #12 of 12 (4038 views)
Shortcut
Re: [Luis] Undo/Redo working as it should. Beautiful!! [In reply to] Can't Post

Hi,

this is an excellent upgrade on the standard editor. But the explanation on how to set up the images directory is a little unclear.

my images directory is /xx/images, where /xx is my root directory, and the htmlarea files are in /xx/htmlarea

so I set the absolute path variable in config.inc to (full DOS path to)xx/images, but when browsing for an image, the browsing window (very nice BTW) opens /xx instead of /xx/images.

Any idea why ?



thanks



Ciaran

 
 
 


Search for (options)