Skip to content

Conversation

@tacheraSasi
Copy link
Contributor

Description

Added a real time word count display to the editor toolbar in both desktop and web applications. The word count updates as users type and provides a helpful metric for writers to track their content length.

Changes

  • Added a wordCount store to track the number of words in both desktop and web apps
  • Implemented word count calculation in the editor component using TipTap's text content
  • Added word count display to the editor toolbar with proper styling and pluralization
  • Ensured consistent implementation across desktop and web platforms

Implementation Details

  • Word count updates in real-time during typing
  • Count is calculated by splitting text on whitespace and filtering empty strings
  • Display shows "1 word" or "X words" depending on the count
  • Word count only appears when there is content in the editor
  • Styled to match existing toolbar elements using the app's design system

@vercel
Copy link

vercel bot commented Jun 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
haptic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2025 4:42pm

@vercel
Copy link

vercel bot commented Jun 16, 2025

@tacheraSasi is attempting to deploy a commit to the chroxify's team Team on Vercel.

A member of the Team first needs to authorize it.

@tacheraSasi
Copy link
Contributor Author

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant