Skip to content

Commit d4c6427

Browse files
authored
Merge pull request #727 from irond/container_for_checkbox
Add TextRun as container for CheckBox
2 parents 0c7593b + 0857f36 commit d4c6427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private function checkValidity($method)
204204
'ListItem' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
205205
'ListItemRun' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
206206
'Table' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
207-
'CheckBox' => array('Section', 'Header', 'Footer', 'Cell'),
207+
'CheckBox' => array('Section', 'Header', 'Footer', 'Cell', 'TextRun'),
208208
'TextBox' => array('Section', 'Header', 'Footer', 'Cell'),
209209
'Footnote' => array('Section', 'TextRun', 'Cell'),
210210
'Endnote' => array('Section', 'TextRun', 'Cell'),

0 commit comments

Comments
 (0)