CKEditor 5 not updating real time

Created on 31 March 2023, over 1 year ago
Updated 7 May 2024, 6 months ago

Problem/Motivation

When installing Real-time SEO module onto Drupal with CKEditor5 enabled. We can't see the changes realtime. We have to save the page and analyze the key words after the page is saved.

Steps to reproduce

  1. Install Drupal (9 or 10)
  2. Ensure CKEditor5 is enabled
  3. Ensure Yoast SEO is enabled
  4. Add new content
  5. Add a text to the CKEditor5 field
  6. Add keyword for analysis on Yoast SEO see that keyword are not recognized.

Proposed resolution

CKEditor by default updates the hidden textarea only on form submit.

What I've seen is that the js reads from the hidden textfield area. Real-Time SEO has a javascript file that updates the textarea but only works with CKEditor4. It checks and uses CKEDITOR object.

The proposed resolution is to use Drupal.CKEditor5Instances to do the same thing.

The problem is that CKEditor5 is attached after the page is loaded. And this is being discussed here: https://www.drupal.org/project/drupal/issues/3319358 Trigger event when Text Editor is attached Needs work

🐛 Bug report
Status

Active

Version

1.8

Component

Code

Created by

🇧🇷Brazil igoragatti

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

Comments & Activities

Production build 0.71.5 2024