πŸ‡¬πŸ‡§United Kingdom @chrisrhymes

Account created on 7 March 2022, over 2 years ago
#

Recent comments

πŸ‡¬πŸ‡§United Kingdom chrisrhymes

I had experienced a similar issue to #17 where it was creating multiple revisions, except I had set the published state and unpublished states. The issue was caused by my workflow settings where I had a 'Ready to publish' status that could not change to 'Archived'. It was set to only allow 'Draft' and 'Published' to go to 'Archived'.

Although this issue is caused by my configuration, it would have been helpful to have seen an error message in the logs to help me identify the issue. Is it possible to log the exception message within the catch of the try/catch statements to help identify why it failed? Thanks.

catch (\InvalidArgumentException $exception) {
  Drupal::logger('scheduler_content_moderation_integration')->error($exception->getMessage());
  // If transition is not valid, throw exception.
  return -1;
}
πŸ‡¬πŸ‡§United Kingdom chrisrhymes

Hi, thank you for your work on this. I have tried the ckeditor5-fixes branch out and discovered that I needed to also use this updated version of Embed πŸ“Œ Add CKEditor 5 compatibility and keep supporting CKEditor 4 RTBC and this version of Entity Embed ✨ Drupal 10 & CKEditor 5 readiness Fixed to get it working, but it's looking good!

I noticed a potential bug where some old embedded paragraphs don't have a paragraph_revision_id in my site. When you click to edit the embedded paragraph you get "Uncaught TypeError: Cannot read properties of undefined (reading 'length')".

You could try using optional chaining (?.) in the JavaScript in paragraphsembedui.js line 109, so if it's undefined it returns undefined instead of an error.

if (paragraph_revision_id?.length) {
      libraryURL = libraryURL + '/' + paragraph_revision_id;
}
Production build 0.69.0 2024