In some cases the changes done in the editor were lost when using other element of the the UI. For example : changing the tab containing the editor component to another one. To avoid loosing the changes made by the user in those cases, we force an urgent commit change in the `onWillUnmount` hook. task-3530998 closes odoo/odoo#137716 closes odoo/odoo#139959 X-original-commit: b2c3775ea01bfdb8e0dd40b3b8e57534c1785116 Signed-off-by: David Monjoie (dmo) <dmo@odoo.com> Signed-off-by: Geelen Sébastien (sge) <sge@odoo.com>