WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 23 months ago

#44755 closed defect (bug) (invalid)

Display Paragraph Count wrong in Gutenberg

Reported by: niravcse006 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9.8
Component: Editor Keywords:
Focuses: Cc:

Description

Hello,
Now we use wordpress latest version with gutenberg. When we create new page with multiple paragraph in content box then paragraph count display wrong.

Thanks.

Attachments (1)

count.png (143.2 KB) - added by niravcse006 2 years ago.

Download all attachments as: .zip

Change History (4)

@niravcse006
2 years ago

#1 follow-up: @swissspidy
2 years ago

  • Component changed from General to Editor

The Table of Contents box does not count the number of <p> elements in your post, but the number of core/paragraph blocks in it.

See https://github.com/WordPress/gutenberg/blob/94f54892c214ebd014ec126a9575b7e902198ad9/packages/editor/src/components/table-of-contents/panel.js#L59-L66

If you want to suggest a change to this behavior, I recommend you to open a new issue on GitHub as Gutenberg is developed there and is not yet a part of WordPress core (which this site here is for).

#2 in reply to: ↑ 1 @niravcse006
23 months ago

Yes, definataly i know that its not part of wordpress core yet. But i want to suggest that if any non developer user working on wordpress admin panel to insert content and he/she also see this feature then he/she don't understand that how this feature is work. So i will change this behaviour in short time.
Thanks.

#3 @SergeyBiryukov
23 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thank you for testing Gutenberg! As noted above, please report any Gutenberg issues on GitHub, as it's not a part of WordPress core yet. Closing the ticket for now.

Note: See TracTickets for help on using tickets.