Merge pull request #13555 from calixteman/value

XFA - Value in field can be html
This commit is contained in:
calixteman 2021-06-14 10:53:17 +02:00 committed by GitHub
commit a4e8f3bdee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2396,7 +2396,9 @@ class Field extends XFAObject {
if (this.ui.imageEdit) {
ui.children.push(this.value[$toHTML]().html);
} else if (!this.ui.button) {
const value = this.value[$toHTML]().html.value;
const value = this.value.exData
? this.value.exData[$text]()
: this.value[$toHTML]().html.value;
if (value) {
if (ui.children[0].name === "textarea") {
ui.children[0].attributes.textContent = value;