@acorex/components 20.2.39 → 20.2.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -168,11 +168,8 @@ class AXWysiwygContainerComponent extends classes((MXInputBaseValueComponent), M
168
168
  }
169
169
  }, ...(ngDevMode ? [{ debugName: "#effect1" }] : []));
170
170
  this.#effect2 = effect(() => {
171
- if (this.isQuillLoaded() && this.value) {
172
- const quill = this.wysiwyg();
173
- const delta = quill.clipboard.convert({ html: this.value });
174
- quill.setContents(delta);
175
- }
171
+ if (this.isQuillLoaded() && this.value)
172
+ this.setWysiwygContent(this.value);
176
173
  }, ...(ngDevMode ? [{ debugName: "#effect2" }] : []));
177
174
  this.#effect3 = effect(() => {
178
175
  if (this.isQuillLoaded()) {
@@ -262,6 +259,15 @@ class AXWysiwygContainerComponent extends classes((MXInputBaseValueComponent), M
262
259
  setDisabledState(isDisabled) {
263
260
  super.setDisabledState(isDisabled);
264
261
  }
262
+ internalValueChanged(value) {
263
+ if (value && this.isQuillLoaded())
264
+ this.setWysiwygContent(value);
265
+ }
266
+ setWysiwygContent(value) {
267
+ const quill = this.wysiwyg();
268
+ const delta = quill.clipboard.convert({ html: value });
269
+ quill.setContents(delta);
270
+ }
265
271
  get __hostName() {
266
272
  return this.name;
267
273
  }