[
https://issues.apache.org/jira/browse/JSPWIKI-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18143191#comment-18143191
]
ASF subversion and git services commented on JSPWIKI-375:
---------------------------------------------------------
Commit 60ac4a7bbc7843f64169d6553787cbd9aefa93a1 in jspwiki's branch
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=60ac4a7bb ]
JSPWIKI-375 Ask before leaving the WYSIWYG editor with unsaved changes
The plain editor installs a handler that asks for confirmation when the user
leaves the
page with changes that are not saved. The WYSIWYG editor did not, so typed text
was lost
without a question when the user followed a link or closed the tab.
The editor now keeps its content once it is attached and installs the same
handler, with
the same message, which answers only when the content has changed. The handler
is removed
when the form is sent, so saving and cancelling leave the page without a
question.
> "Are you sure" prompt when leaving the page editor via unusual ways
> -------------------------------------------------------------------
>
> Key: JSPWIKI-375
> URL: https://issues.apache.org/jira/browse/JSPWIKI-375
> Project: JSPWiki
> Issue Type: Improvement
> Reporter: Florian Holeczek
> Priority: Minor
> Labels: pull-request-available
> Fix For: STRIPES/JCR-3.0
>
>
> When editing a page and leaving it via other ways than cancel or save (e.g.
> via links in the LeftMenu or by typing a new address in the browser's address
> bar), the user should be prompted whether he's sure about leaving (like
> already implemented on the user preferences page).
> If he's sure about leaving, the cancel action should be called automatically,
> for the page lock to disappear, too.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)