Ticket #799 (closed enhancement: invalid)
How to check if the content have be changed by user
| Reported by: | Emanuel Dejanu <emanuel@…> | Owned by: | gogo |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | dirty,saving |
| Cc: |
Description
Hi,
Is there a easy/fast way to know if user have change the content? Now I use:
var g_strOriginalText = g_editor.getInnerHTML();
function OnSave?() {
var strHTML = g_editor.getInnerHTML(); if (strHTML != strOriginalText)
DoSaving?();
}
but this is very slow. I will like a function g_editor.IsDirty?().
Change History
Note: See
TracTickets for help on using
tickets.
