Problem/Motivation

Steps to reproduce

Proposed resolution

port https://www.drupal.org/project/drupal/issues/3381557

Remaining tasks

None

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 3424184-2.patch33.63 KBedysmp
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

edysmp created an issue. See original summary.

edysmp’s picture

Status: Active » Needs review
StatusFileSize
new33.63 KB

the patch

charlieweb82’s picture

Status: Needs review » Reviewed & tested by the community

Work good, tested and the List still present when I edit the embed the patch #2 is fixed the issues

edysmp’s picture

Status: Reviewed & tested by the community » Needs review

opened a MR

heddn’s picture

Status: Needs review » Needs work

NW because of test failures.

dalin’s picture

Since the related Drupal Core issue was critical (because it results in content mangling when upgrading from CK4), this issue should also be.

dalin’s picture

While this patch makes things better, I'm experiencing some significant UX issues:

1. Create an OL
2. Use Entity Embed button to insert a document
3. Try to add another LI. There's no way to put your cursor after the embedded document and press <enter>. The CK5 "type around" buttons are misleading since they only add soft line breaks (i.e. keep you within the current LI)
4. You might eventually figure out that you have to put an empty paragraph after the OL, and then click the OL toolbar button (it doesn't add a new OL, it merges into the existing one).

I don't know enough about the inner workings here, but I suspect that this should be a follow-up issue. Or it might even be an upstream issue with Drupal Core or CK5???

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

stacypendell’s picture

This patch has been working well on one of our sites, but now we'd like to upgrade to core 10.5.1 and this patch conflicts with 3531672. Any chance of a reroll to handle both issues?

Appreciate your work fixing this issue!

odensc’s picture

Status: Needs work » Reviewed & tested by the community

We've been running this patch in production the last few months and it's been working well. I couldn't reproduce the issues described in #8, not sure if a recent core or CKEditor update has fixed things. I'm moving to RTBC if there are no objections, it's a significant improvement to the existing behavior (of not being able to embed things in lists at all), even if it weren't perfect.

odensc’s picture

Status: Reviewed & tested by the community » Needs work

NVM, I see that the tests are failing. I will attempt to fix them before moving back to RTBC.

odensc changed the visibility of the branch 3424184-formatting-lost-when to hidden.

odensc changed the visibility of the branch 3424184-formatting-lost-when to active.

odensc’s picture

Status: Needs work » Reviewed & tested by the community

After merging in master, the tests are passing locally, so the failure appears unrelated to this MR (other GitLab workflows such as the ones in e.g. #3531672: Drupal 10.5/11.2 Compatibility (tooltip broken, cannot edit embedded entities) are failing with the same Test was run in child process and ended unexpectedly error), so moving back to RTBC.

dave reid made their first commit to this issue’s fork.

dave reid’s picture

Issue summary: View changes

  • dave reid committed 9a3ebc2f on 8.x-1.x authored by edysmp
    fix: #3424184 Keep embedded entities in list items in CKEditor 5
    
    By:...
dave reid’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • dave reid committed 9a3ebc2f on 2.0.x authored by edysmp
    fix: #3424184 Keep embedded entities in list items in CKEditor 5
    
    By:...