There is a save draft box function in the requirement, which prompts you to save when the page is refreshed or closed.

how should I add this hint?
using the window.onbeforeunload = function () {} method is just a system prompt, and the prompt you want to add cannot display
do you have any good solutions?

Mar.16,2021

the general solution is to save it regularly, such as ueditor saving the content to localstorage every 10 seconds.

Menu