Fix htmlarea.isDirty() was using the pre-editor initialization value causing it to always be true

This commit is contained in:
nathangray 2020-06-24 09:58:18 -06:00
parent 10b2eda4ac
commit 74284afc07
2 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,7 @@ var et2_htmlarea = /** @class */ (function (_super) {
// inside an inactive tabs
this.tinymce.then(function () {
self.set_value(self.htmlNode.val());
self.resetDirty();
if (self.editor && self.editor.editorContainer) {
self.editor.formatter.toggle(egw.preference('rte_formatblock', 'common'));
jQuery(self.editor.editorContainer).height(self.options.height);

View File

@ -268,6 +268,7 @@ class et2_htmlarea extends et2_editableWidget implements et2_IResizeable
// inside an inactive tabs
this.tinymce.then(function() {
self.set_value(self.htmlNode.val());
self.resetDirty();
if (self.editor && self.editor.editorContainer)
{
self.editor.formatter.toggle(<string><unknown>egw.preference('rte_formatblock', 'common'));