editor.SetClean() -to complement editor.IsDirty()

  •  04-03-2014, 5:16 PM

    editor.SetClean() -to complement editor.IsDirty()

    I have logic that uses editor.IsDirty() to determine whether to auto-save user updates.

    If IsDirty() returns 'true' then I use client-script to grab the editor text and save it to the server.

    I would like a way to then cause editor.IsDirty() to return false (because the changes have been saved). I was looking for something like editor.SetClean(), but found nothing. Is there a way I can use client-side script to cause editor.IsDirty() to return false?

     

    Thanks. 

View Complete Thread