sahana / vesuvius

Sahana Vesuvius
http://sahanafoundation.org/products/vesuvius/
MIT License
24 stars 27 forks source link

Resource Pages - Fails to prompt the user of unsaved changes in WYSIWYG mode #64

Open agentmilindu opened 10 years ago

agentmilindu commented 10 years ago

If you click 'Edit' on a page , make a change while in 'WYSIWYG' mode , click 'Close Editor', it closes without warning to save before leave.

If you click 'Edit' on a page , make a change while in 'HTML' mode , click 'Close Editor', it gives a warning to save before leave, 'Are you sure you want to close this document? It has not been saved.'

agentmilindu commented 10 years ago

When in 'HTML' mode, textarea[id='pageContent'] has an onchange event handler to make window.rezPageSaved = false; But when in 'WYSIWYG' mode, setting window.rezPageSaved = false; when a change is made doesn't happen. Evenmore, nicEditor does not have a proper way to check for the change of the content.

ravihansa3000 commented 10 years ago

Closing duplicate entry. See #65