solution for issue number 4730

add <?php echo $this->form->getField('body')->save(); ?> in javascript function just before Joomla.submitform(task, document.getElementById('note-form'));  to enable the data save after the toggling the editor as reported in issue number 4730