matcha-components 20.241.0 → 20.242.0

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.
@@ -14802,6 +14802,9 @@ class MatchaTextEditorComponent {
14802
14802
  return;
14803
14803
  isDisabled ? this._editor.toolbar.disable() : this._editor.toolbar.enable();
14804
14804
  }
14805
+ insertHtml(html) {
14806
+ this._editor?.html.insert(html);
14807
+ }
14805
14808
  // Private
14806
14809
  _injectScript(id, url) {
14807
14810
  return new Promise((resolve) => {
@@ -14901,14 +14904,14 @@ class MatchaTextEditorComponent {
14901
14904
  if (sunEditorEl)
14902
14905
  sunEditorEl.style.display = 'none';
14903
14906
  setTimeout(() => {
14907
+ if (sunEditorEl)
14908
+ sunEditorEl.style.display = '';
14904
14909
  if (this._pendingValue) {
14905
14910
  this._isSettingValue = true;
14906
14911
  this._editor.html.set(this._pendingValue);
14907
14912
  this._pendingValue = '';
14908
14913
  setTimeout(() => { this._isSettingValue = false; }, 0);
14909
14914
  }
14910
- if (sunEditorEl)
14911
- sunEditorEl.style.display = '';
14912
14915
  this._ngZone.run(() => {
14913
14916
  this.isLoading = false;
14914
14917
  this._cdr.detectChanges();