- Issue created by @vipul tulse
- Status changed to Postponed: needs info
about 1 year ago 7:14pm 27 November 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
Can you provide some screenshots of what you were expecting to see?
- 🇮🇳India vipul tulse
Please check attached image.
When you do edit in the node and make the changes to the node body where the Creditor available and try to refresh the page, it is not asking me the Reload Page? browser popup.
I will make video and post for more information. - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
I don't ever recall seeing that functionality, in CKE4 or 5.
Are you sure it wasn't provided by custom code or a module? - Status changed to Active
about 1 year ago 9:58am 28 November 2023 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
That's indeed browser behavior, not CKEditor 4/5-specific logic.
I do think it's fair to expect CKEditor to be working in such a way that it protects the user against data loss.
And I think it's because the
<textarea>
is not updated until the user hits "Save".Verify this yourself using
document.querySelector('textarea#edit-body-0-value').value
: it remains the empty string. I suspect this behaved differently in CKEditor 4.We should report this upstream — I can't find an existing issue for it: https://github.com/search?q=repo%3Ackeditor%2Fckeditor5+changes+may+not+...