Merge pull request #13555 from calixteman/value
XFA - Value in field can be html
This commit is contained in:
commit
a4e8f3bdee
@ -2396,7 +2396,9 @@ class Field extends XFAObject {
|
|||||||
if (this.ui.imageEdit) {
|
if (this.ui.imageEdit) {
|
||||||
ui.children.push(this.value[$toHTML]().html);
|
ui.children.push(this.value[$toHTML]().html);
|
||||||
} else if (!this.ui.button) {
|
} 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 (value) {
|
||||||
if (ui.children[0].name === "textarea") {
|
if (ui.children[0].name === "textarea") {
|
||||||
ui.children[0].attributes.textContent = value;
|
ui.children[0].attributes.textContent = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user