🇦🇺Australia @peterx

Account created on 16 May 2005, over 19 years ago
#

Recent comments

🇦🇺Australia peterx

peterx created an issue.

🇦🇺Australia peterx

Installed Drupal 10.2.1 today. Claro as admin theme. Tried to set Ckeditor 5 for Full HTML. Could not. Had the message You have to configure Ckeditor 5. I noticed the message about fixing it using Claro. As an experiment, I used Olivero. That let me set Ckeditor 5 in Full HTML. I then switched back to Claro as the admin theme.

I then tried to create an article but Ckeditor would not appear for Full HTML using either Claro or Olivero.

I successfully added Ckeditor 5 to Basic HTML and the editor appeared in create Article.
I successfully added Ckeditor 5 to Restricted HTML and the editor appeared in create Article.

I successfully added Ckeditor 5 to Full HTML but the editor did not appear in create Article. I tested several add/delete/add cycles with Claro and Olivero but could not make Ckeditor work with Full HTML.

This might help with diagnostics and testing.

I also tested with a third party theme for the site but not admin. When I add Ckeditor 5 to Basic or Full or Restricted, there is a message about the theme having a style sheet for Ckeditor but not Ckeditor 5.

"The 0 Point theme has ckeditor_stylesheets configured without a corresponding ckeditor5-stylesheets configuration. See the change record for details."

Using Firefox console during create Article, I get the following message for Basic, restricted, and Full.
Uncaught TypeError: node is null
checkMutation http://example.com/node/add/article line 612 > eval:92

The line is:
node.nodeType === Node.ELEMENT_NODE &&
node.nodeName === 'SCRIPT' &&
node.dataset &&
node.dataset.bigPipeReplacementForPlaceholderWithId &&
typeof drupalSettings.bigPipePlaceholderIds[
node.dataset.bigPipeReplacementForPlaceholderWithId
] !== 'undefined',
);

When I switch to Full, I get this additional error:
CKEditorError: plugincollection-soft-required {"missingPlugin":"LinkEditing","requiredBy":"EntityEmbedLinkUi"}
Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#erro...

🇦🇺Australia peterx

I now have a module adding a button to the edit page using form alter. Tomorrow I will create a function to open a file select. Step by step.

I am using some stuff from the examples module version 3 for Drupal 8, 9, and 10.

🇦🇺Australia peterx

Thank you for the suggestions. I will read through those. Currently I am testing Entity Import as it appears to be close to what I want. I think you open the create Article page then click the Entity Import button to fill the page.

It has options for selecting titles and other options. I may be able to replace that with automatic selection from the input.

Production build 0.71.5 2024