Implement Word Count Feature for text, textarea and CKEditor 5 in textfield_counter Module

Created on 12 April 2024, 3 months ago
Updated 9 June 2024, 19 days ago

Problem/Motivation

Currently, the CKEditor 5 integration within the textfield_counter module lacks a word count feature. This omission makes it difficult for users to track their content length accurately, especially when adhering to word or character limits.

Proposed resolution

To address this issue, I propose implementing a dropdown in the widget settings. This dropdown will allow users to choose between words and character count as their preferred metric. Upon selection, a counter will be dynamically displayed within the text, textarea and CKEditor 5 fields.
Furthermore, upon clicking the save button, the module will validate the entered content against the chosen limit (either word or character count). If the limit is exceeded, an error message will be displayed at the top of the page, notifying the user of the exceeded limit and preventing submission until the content is modified to comply with the specified limit.

✨ Feature request
Status

RTBC

Version

2.3

Component

Code

Created by

🇮🇳India Sapnakhatri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024