Browse Source

Do not update rich-editor on save.

pull/881/head
Sebastian 4 years ago
parent
commit
1ddfd65a1e
  1. 8
      frontend/src/app/shared/components/forms/rich-editor.component.ts

8
frontend/src/app/shared/components/forms/rich-editor.component.ts

@ -228,7 +228,13 @@ export class RichEditorComponent extends StatefulControlComponent<{}, string> im
} }
public writeValue(obj: any) { public writeValue(obj: any) {
this.value = Types.isString(obj) ? obj : ''; const newValue = Types.isString(obj) ? obj : '';
if (newValue == this.value) {
return;
}
this.value = newValue;
if (this.tinyEditor && this.tinyEditor.initialized) { if (this.tinyEditor && this.tinyEditor.initialized) {
this.setContent(); this.setContent();

Loading…
Cancel
Save