Problem/Motivation

Lates Dev version (with automated D10 patch) is not compatible with drupal 10.

  • core_version_requirement: ^8 || ^9 also misses version 10
  • insert is configurable on form settings page, but completely missing from node edit/add form
  • CKE5 compatibility? maybe other task?

Steps to reproduce

Fresh install on D10.0.7 with colorbox

Issue fork insert-3354931

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nitrocad created an issue. See original summary.

snater’s picture

Priority: Normal » Major
Status: Active » Needs review
StatusFileSize
new3.23 KB

Attached a patch set that fixes the issues for me, although I just did some little testing if the Insert button shows up again and inserting an image basically works.

The core requirement would need to be bumped directly to version 10 without backward compatibility, because Twig has been upgraded to version 3 along with Drupal 10, which requires changes to be made in the template files. Drupal 9.2 had deprecated hook_field_widget_form_alter, which is superseded by hook_field_widget_single_element_form_alter.

Of course, the CKEditor legacy module has to be used as of now. As for upgrading the CKEditor dependency, there is a separate issue: https://www.drupal.org/project/insert/issues/3314446

Setting this ticket to major priority, which I'll also assign to the CKEditor issue to draw attention.

nitrocad’s picture

Thanks for the patch.

I tested it too on D10.0.7 with CKE4 and Colorbox, and it seems working fine!

Once is missing, the submodules version requirement need to be updated too.

snater’s picture

Thanks for checking. Forgot about the submodules, there is also another occurrence of hook_field_widget_form_alter. Updated patch attached.

mlncn’s picture

Status: Needs review » Reviewed & tested by the community

This should probably get another major version branch release given the need to drop D9 support.

(And then another major version for CKeditor5?)

But it's needed now, obviously, for sites to move to Drupal 10.

Patch does that, and looks good!

dioni made their first commit to this issue’s fork.

snater’s picture

Status: Reviewed & tested by the community » Fixed

Patch is merged and 3.0.0 beta release is created.
If things are fine, will make a final 3.0.0 release within the next few weeks.
Thanks to everyone involved here.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.