@acorex/components 21.0.0-next.41 → 21.0.0-next.42
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.
|
@@ -79,6 +79,7 @@ class AXWysiwygContainerComponent extends classes((MXInputBaseValueComponent), M
|
|
|
79
79
|
return;
|
|
80
80
|
const Quill = (await import('quill')).default;
|
|
81
81
|
const icons = Quill.import('ui/icons');
|
|
82
|
+
this.quillConvertor = (await import('quill-delta-to-html')).QuillDeltaToHtmlConverter;
|
|
82
83
|
icons['bold'] = '<ax-icon class="ax-icon ax-icon-bold"></ax-icon>';
|
|
83
84
|
icons['italic'] = '<ax-icon class="ax-icon ax-icon-italic"></ax-icon>';
|
|
84
85
|
icons['underline'] = '<ax-icon class="ax-icon ax-icon-under-line"></ax-icon>';
|
|
@@ -209,8 +210,7 @@ class AXWysiwygContainerComponent extends classes((MXInputBaseValueComponent), M
|
|
|
209
210
|
}
|
|
210
211
|
else {
|
|
211
212
|
const delta = this.wysiwyg()?.getContents().ops;
|
|
212
|
-
const
|
|
213
|
-
const converter = new QuillDeltaToHtmlConverter(delta, {
|
|
213
|
+
const converter = new this.quillConvertor(delta, {
|
|
214
214
|
inlineStyles: true,
|
|
215
215
|
allowBackgroundClasses: true,
|
|
216
216
|
});
|