Workaround saving too fast before page fully loaded
Posted: Wed Mar 17, 2021 2:38 pm
I had issues when I saved too fast a long post (before the page fully loaded), ending up with an empty post. Good thing I was using Time machine. I found a way to force a delay before I can save again - I use TinyMCE. I hope it will help the ones facing the same problem.
You must apply css display:none prior to using that script to #jsbuttonSave.
HTML plugin - ADMIN header:
HTML plugin - ADMIN footer:
You must apply css display:none prior to using that script to #jsbuttonSave.
HTML plugin - ADMIN header:
Code: Select all
<style>
#jsbuttonSave {display:none;}
</style>
Code: Select all
<script>
$(document).ready(function () {
$('#jsbuttonSave')
.delay(4000)
.queue(function (next) {
$('#jsbuttonSave').css('display', 'block');
next();
});
});
</script>