<div dir="ltr">I couldn't agree more. <div>As there is no easy undo if you close without saving, and the consequences are severe - the loss of potentially a lot of work.</div><div><br></div><div>Also I think modern expectation (cf online editing such as google docs) is that you can't/shouldn't be able to accidentally lose input.</div><div><br></div><div>great idea</div><div><br></div><div>Simon<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 5 Jan 2022 at 00:23, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Currently by default PmWiki doesn't warn when people edit a page, and <br>
try to move away from the edit form without saving.<br>
<br>
We have $EnableNotSavedWarning but it needs to be enabled in config.php <br>
by the administrator.<br>
<br>
I added it to sample-config.php, but I wonder if instead we should <br>
simply enable it by default.<br>
<br>
I believe the setting dramatically improves the user experience and <br>
saves a lot of frustration, especially with inexperienced editors and <br>
administrators (who have yet to read the documentation and enable the <br>
setting).<br>
<br>
The setting, enabled, might possibly interfere with some custom edit <br>
forms, although I am not aware of such a case, or with some of the <br>
existing recipes that do exactly this.<br>
<br>
If we enable it by default, anyone who doesn't need this feature can <br>
disable it with<br>
<br>
   $EnableNotSavedWarning = 0;<br>
<br>
Even if there might be existing administrators who may be annoyed to add <br>
this line when they upgrade, I feel the benefit from having the feature <br>
enabled outweighs the downside.<br>
<br>
Thoughts?<br>
<br>
Petko<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>