gd-sprest-bs 10.1.7 → 10.1.8
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.
|
@@ -159,7 +159,7 @@ var renderDisplay = function (fieldName, props) {
|
|
|
159
159
|
if (/<*>/g.test(html)) {
|
|
160
160
|
var isMultiLine = html.indexOf("<br />") >= 0 ? true : false;
|
|
161
161
|
// Ensure this isn't a rich text field or multi-line
|
|
162
|
-
if (!isRichText
|
|
162
|
+
if (!isRichText && !isMultiLine) {
|
|
163
163
|
// Update the control to be read-only
|
|
164
164
|
control.type = core_1.Components.FormControlTypes.Readonly;
|
|
165
165
|
// Set the rendered event
|
|
@@ -170,6 +170,12 @@ var renderDisplay = function (fieldName, props) {
|
|
|
170
170
|
elTarget.innerHTML = control.props.data;
|
|
171
171
|
};
|
|
172
172
|
}
|
|
173
|
+
else {
|
|
174
|
+
// Update the html break line
|
|
175
|
+
html = html.replace(/<br \/>/g, '\n');
|
|
176
|
+
control.data = html;
|
|
177
|
+
control.value = html;
|
|
178
|
+
}
|
|
173
179
|
}
|
|
174
180
|
// Else, detect xml
|
|
175
181
|
else if (/</g.test(html)) {
|