Ticket #117 (closed Bug: fixed)
FCK.IsDirty() fails in Source view
| Reported by: | alfonsoml | Owned by: | alfonsoml |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | FCKeditor 2.4 |
| Keywords: | HasPatch | Cc: |
Description
The check is run against EditorDocument so now that the object is destroyed it raises an error, but previously it did return a wrong state while the user changed the source in the textarea.
IsDirty : function()
{
return ( this.StartupValue != this.EditorDocument.body.innerHTML ) ;
},
ResetIsDirty : function()
{
if ( this.EditorDocument.body )
this.StartupValue = this.EditorDocument.body.innerHTML ;
},
Attachments
Change History
Note: See
TracTickets for help on using
tickets.