Problem/Motivation

One of the great new features that's about to ship with Drupal 8.8 is the ability to embed media within CKEditor. https://wimleers.com/blog/media-embedding-drupal-8.8 While #2954378: Use Media images in Umami demo showcases Media in fields and the default imagery in Umami (hooray!), when you insert an image into CKEditor, you're still using the old "legacy" images.

Proposed resolution

Remaining tasks

  • Discuss the above
  • Write a patch
  • Make it so!

User interface changes

Yes! CKEditor's image button gets replaced with a Media button, and it uses that flow instead.

API changes

Shouldn't be.

Data model changes

Probably. We will presumably need to change some default config to make this a reality.

Release notes snippet

The Umami demo now showcases Drupal 8.8's new ability to embed media within the WYSIWYG editor.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick created an issue. See original summary.

kjay’s picture

This is great. I'll add this issue to the updates I'm currently working on so that we have new tasty feature content!

The original designs proposed a simple image embedded on an article (https://www.drupal.org/files/issues/Umami%20-%20Article%20-%20v1%20-%20D...) which is going to be no problem to use one of the new images, and we can discuss this issue at our next meeting to work out how we plan to integrate the video.

shaal’s picture

I created an initial version so we can test it out.
I used the 3x2 that Umami is using for most image as default image style for new images added.

Please note: that this patch is depending on the latest patch from #2954378: Use Media images in Umami demo because that's where all the media view modes are being defined.

And that's how it looks -

Status: Needs review » Needs work

The last submitted patch, 3: ootb-media-library-ckeditor-3086965-3.patch, failed testing. View results

shaal’s picture

Status: Needs work » Needs review
FileSize
143.86 KB

Uploading a patch that includes the required umami-media-images patch, to make sure that test can pass.

Status: Needs review » Needs work

The last submitted patch, 5: 3086965-3-bundled-with-2954378-81-TEST-ONLY.patch, failed testing. View results

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

shaal’s picture

Fixed tests error.
Added a bundled test-only patch, that includes the newer media-images patch #86.

The last submitted patch, 8: ootb-media-library-ckeditor-3086965-9.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 8: 3086965-9-bundled-with-2954378-86--TEST-ONLY.patch, failed testing. View results

shaal’s picture

Fixing test errors.

markconroy’s picture

Status: Needs review » Reviewed & tested by the community

I've reviewed this along with @shaal and am happy to mark it RTBC - even though I don't like the idea of images added via wysiwyg :-)

markconroy’s picture

shaal’s picture

To clarify, after #2954378: Use Media images in Umami demo gets committed,
https://www.drupal.org/files/issues/2019-10-13/ootb-media-library-ckeditor-3086965-11.patch is ready to be merged.

  • webchick committed 0a711ca on 9.0.x
    Issue #3086965 by shaal, markconroy, webchick, kjay: Allow embedding...

  • webchick committed 9577083 on 8.9.x
    Issue #3086965 by shaal, markconroy, webchick, kjay: Allow embedding...
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Great work, everyone! Committed and pushed to 9.0.x; 8.9.x; 8.8.x; Thanks SO much, all!!

  • webchick committed 6b1c701 on 8.8.x
    Issue #3086965 by shaal, markconroy, webchick, kjay: Allow embedding...

Status: Fixed » Closed (fixed)

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