az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Standard text format settings page produces a console error related to CKEditor 5 #2827

Closed camikazegreen closed 11 months ago

camikazegreen commented 11 months ago

Problem/Motivation

During our testing on https://28-beta1-azs-quickstart.pantheonsite.io the Embed Content and Embed Blocks were both missing from the CK Editor in the Standard text formatter.

The Standard text format settings page produces a console error related to CKEditor 5:

drupal.js?v=10.1.5:64 Uncaught TypeError: Cannot read properties of undefined (reading ‘id’)
    at ckeditor5.admin.js?s2c3nt:568:15
    at Array.map (<anonymous>)
    at ckeditor5.admin.js?s2c3nt:565:50
    at Array.forEach (<anonymous>)
    at Object.attach (ckeditor5.admin.js?s2c3nt:537:9)
    at drupal.js?v=10.1.5:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.1.5:162:34)
    at drupal.init.js?v=10.1.5:32:12
    at HTMLDocument.listener (drupal.init.js?v=10.1.5:20:7)

To Reproduce

We aren't sure what caused this problem on this site, since it seems to be working correctly on most of the other sites that we are testing on.

Expected behavior

Installation of the 2.8 release should not remove the embedding options from the CK Editor on any sites.

Screenshots

Expected Toolbar Follow link and see section 9. wysiwyg

Actual Toolbar Editor Toolbar Labled

trackleft commented 11 months ago
image
trackleft commented 11 months ago

I was able to fix this locally, however, I'm not sure which step actually resolved it.

  1. composer reinstall drupal/embed

    image
  2. composer reinstall drupal/entity_embed

    image

    (So far still receiving the error)

  3. lando en -y config_import_single

4.lando drush cis web/profiles/custom/az_quickstart/modules/custom/az_paragraphs/config/optional/embed.button.az_embed_content.yml I then see this error

image
  1. then run this command

    lando drush en -y views_remote_data
  2. this lando drush cis web/profiles/custom/az_quickstart/modules/custom/az_paragraphs/config/optional/embed.button.az_embed_content.yml then is run and resolves the issue.

trackleft commented 11 months ago

Possibly related to issue #2825

danahertzberg commented 11 months ago

Other sites to check

joeparsons commented 11 months ago

This issue is still affecting some sites we're testing beta2 on.