Problem/Motivation

- We have inline images established in the POC (https://olivero-poc.netlify.com/), however, we need to account for default styling of other types in the Olivero theme as well.

Proposed resolution

- When the core Media module is enabled, the following media types should be able to be inserted within the ckEditor and inherits default styling.

  • Document
  • Image
  • Audio file (local)
  • Video file (local)
  • Remote video

- Editors should be able to place the inline media asset (image, video, etc) in left, right, or center alignment. Please take a look at the POC (https://olivero-poc.netlify.com/) for how the caption style should be treated.

Additional Info

- This work is related to this issue - https://www.drupal.org/project/olivero/issues/3115194.

User interface changes

API changes

Data model changes

Release notes snippet

Comments

proeung created an issue. See original summary.

proeung’s picture

Issue tags: +olivero-sprint-d
kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko
kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Active » Needs review
StatusFileSize
new12.41 KB
new83.28 KB
new25.38 KB

-

kostyashupenko’s picture

Couple issues i found:
1.
Media document
2.
Media audio

I guess we need to improve display of Document media somehow)
Also <audio> has different styling in all browsers. On my screen it is Google Chrome, where audio has rounded corners. It doesn't look really good with <figcaption> under, which has light gray background. Proposals/ideas?

proeung’s picture

@kostyashupenko Thanks for picking up this ticket and submitting a patch! As for your question, I do agree that we probably need some design guidelines for the inline PDF link and the audio elements. Feels like we can follow this up in another ticket for design QA. @jwitkowski79 let me know what you think.

In the meantime, I'll make sure to review your patch and follow-up with any feedback. Thanks for all of the work you've contributed to this project!

proeung’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new215.47 KB
new9.09 KB

@kostyashupenko I have to re-rolled/rebased your patch in order to fix a few merge conflicts and aligning the patch with the latest codebase. I tested the media insert and everything is looking great with the exception of what we discussed above. I'll follow up with creating a design ticket that will address the styling concerns of the PDF and Audio media types.

Missing pdf styling

Please see attached for the re-roll patch that has been reviewed and merged into the `dev` branch.

proeung’s picture

Status: Reviewed & tested by the community » Fixed
proeung’s picture

proeung’s picture

Status: Fixed » Closed (fixed)

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