mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Support multiline textfields for printing
This commit is contained in:
parent
8c162f57f7
commit
cd8bb7293b
3 changed files with 225 additions and 7 deletions
|
@ -462,7 +462,7 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement {
|
|||
element.setAttribute("value", textContent);
|
||||
}
|
||||
|
||||
element.addEventListener("change", function (event) {
|
||||
element.addEventListener("input", function (event) {
|
||||
storage.setValue(id, event.target.value);
|
||||
});
|
||||
|
||||
|
@ -689,7 +689,7 @@ class ChoiceWidgetAnnotationElement extends WidgetAnnotationElement {
|
|||
selectElement.appendChild(optionElement);
|
||||
}
|
||||
|
||||
selectElement.addEventListener("change", function (event) {
|
||||
selectElement.addEventListener("input", function (event) {
|
||||
const options = event.target.options;
|
||||
const value = options[options.selectedIndex].text;
|
||||
storage.setValue(id, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue