Skip to content

Commit e54322f

Browse files
jaulznperez0111
authored andcommitted
fix: allow text nodes in descendants
1 parent 303877d commit e54322f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Editor.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ public function descendants($closure): Editor
126126
*/
127127
private function walkThroughNodes(&$node, $closure)
128128
{
129-
// Skip, if it’s just text.
130-
if ($node->type === 'text') {
131-
return;
132-
}
133-
134129
// Call the closure.
135130
$closure($node);
136131

0 commit comments

Comments
 (0)