mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Value in field can be html
This commit is contained in:
parent
96c103462a
commit
088db47849
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue