Fix admin menu news editing warning when leaving page without touching the inputs

This commit is contained in:
slawkens 2020-06-06 17:57:23 +02:00
parent 2af968031c
commit 53078e046e

View File

@ -158,7 +158,7 @@
toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | emoticons link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat code',
image_advtab: true,
setup: function(ed){
ed.on('NodeChange', function(e) {
ed.on('Change', function(e) {
if(ed.getContent() != lastContent) {
unsaved = true;
}