tnx-shared 5.3.240 → 5.3.241
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.
- package/bundles/tnx-shared.umd.js +4 -1
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/html-preview/html-preview.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/html-preview/html-preview.component.js +4 -2
- package/fesm2015/tnx-shared.js +4 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -2250,6 +2250,7 @@
|
|
|
2250
2250
|
_this.height = 250;
|
|
2251
2251
|
_this.useMathJaxMenu = false;
|
|
2252
2252
|
_this.autoScrollBottom = false;
|
|
2253
|
+
_this.isHtml = true;
|
|
2253
2254
|
for (var key in init) {
|
|
2254
2255
|
_this[key] = init[key];
|
|
2255
2256
|
}
|
|
@@ -54386,7 +54387,9 @@
|
|
|
54386
54387
|
var autoScrollBottom = !!((_a = $this.control) === null || _a === void 0 ? void 0 : _a.autoScrollBottom);
|
|
54387
54388
|
var output = $this.mathContent.nativeElement;
|
|
54388
54389
|
var content = ((_b = $this.content) === null || _b === void 0 ? void 0 : _b.trim()) || '';
|
|
54389
|
-
|
|
54390
|
+
if (!$this.control.isHtml) {
|
|
54391
|
+
content = content.replace(/\n/g, '<br>');
|
|
54392
|
+
}
|
|
54390
54393
|
output.innerHTML = content;
|
|
54391
54394
|
if ($this.mathJaxObject.texReset) {
|
|
54392
54395
|
$this.mathJaxObject.texReset();
|