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 - Feature Requests:
IsChanged propperty


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.

 


irobotst
Novice

Jan 25, 2005, 11:18 PM

Post #1 of 3 (10124 views)
Shortcut
IsChanged propperty Can't Post

We want to find out if an user changed the contence of the aerea, before he submits the form. Maybe a little sign appears on the toolbar


nikotto
User

Jan 27, 2005, 11:57 PM

Post #2 of 3 (10045 views)
Shortcut
Re: [irobotst] IsChanged propperty [In reply to] Can't Post

you can use the onChange-Event...


irobotst
Novice

Feb 1, 2005, 12:11 PM

Post #3 of 3 (9991 views)
Shortcut
Re: [nikotto] IsChanged propperty [In reply to] Can't Post

It semms not as easy as you think. The onchange-of the textarea will not work.

The onchange of the editor will not work too. I tried to add an new event-Handler:

HTMLArea._addEvents (editor._iframe.contentWindow.document,["change"], function (event)
{
alert('change');
}
);

After the part:

HTMLArea._addEvents (doc, ["keydown", "keypress", "mousedown", "mouseup", "drag"], ....

and I tried it with various element-objects like editor._iframe.contentWindow.document.body etc.

No change event will be shown.

Now I think it will be added to every "keydown", "keypress", "mousedown", "mouseup", "drag" - Event t scan if the user has ch<anged the text.

 
 
 


Search for (options)