Skip to content

Word count in matrix field with ckeditor not accurate  #487

@nicolas-haemmerli-bh

Description

@nicolas-haemmerli-bh

Description

First of all: thanks for this plugin! It's exactly what we need, simple but contains the most necessary functions.

However, when I have a matrix field containing multiple ckeditor-fields, the wordcount is not accurate.
wrong wordcount

I assume that the counter does not take recursive fields into account.

Steps to reproduce

  1. Create a field with the type ckeditor.
  2. Create a matrix field and include the ckeditor-field you just created
  3. Create a new Entry Type and include the matrix field as well as the seo field
  4. Create a new entry of the entry type, add a ckeditor field and type some words in there.
  5. You can now see that the word count is not accurate.

Additional info

  • Craft version: 5.4.6
  • SEO version: v5.0.0-rc5
  • PHP version: 8.2.20
  • Database driver & version: MySQL 8.0.36
  • Other Plugins: CKEditor (4.1.0), Vite (5.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions