pass the paragraph style

This commit is contained in:
troosan 2021-02-11 21:44:20 +01:00 committed by GitHub
parent a382f9d754
commit bed1f7afbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class Html
switch ($inputType) { switch ($inputType) {
case 'checkbox': case 'checkbox':
$checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false; $checked = ($checked = $attributes->getNamedItem('checked')) && $checked->value === "true" ? true : false;
$textrun = $element->addTextRun(); $textrun = $element->addTextRun($styles['paragraph']);
$textrun->addFormField('checkbox')->setValue($checked); $textrun->addFormField('checkbox')->setValue($checked);
break; break;
} }