Skip to content

Commit

Permalink
prioritize textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras authored and mcsf committed Jul 15, 2021
1 parent c71da08 commit fe3418a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/post-excerpt/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function PostExcerptEditor( {
renderedExcerpt,
'text/html'
);
return document.body.innerText || '';
return document.body.textContent || document.body.innerText || '';
}, [ renderedExcerpt ] );
if ( ! postType || ! postId ) {
return (
Expand Down

0 comments on commit fe3418a

Please sign in to comment.