I installed media_entity and media_entity_image and media_entity_browser
When using the embed button it is not asking for custom fields

img
img

any hints on how to enable custom fields while embed images with entity embed button?

Thanks

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stevenx created an issue. See original summary.

marcoscano’s picture

Category: Bug report » Support request
Issue tags: +D8Media

I may have misunderstood your question, please let me know if this is the case.

The entity embed module on its own is intended to allow you to select an existing entity and embed it inside a wysiwyg area. When used in conjunction with entity_browser (or any variation of it, as media_entity_browser), you could potentially have a workflow where entities can be created on the fly just before being embedded. If you are looking for this second scenario and are not seeing the entity fields in the entity creation form, your browser may not be configured properly.

On the other hand, if what you are looking for is a way of selecting an existing entity and then modifying some of its fields right before embedding it, this is not something possible with these modules. Actually, bear in mind that what is embedded is not the rendered markup of the entity, but only some metadata pointing to it so drupal can re-render it as many times as necessary in the future. Which means that even if you could modify some of its fields (using some custom code or other contrib solutions), this modification would affect all other instances where this entity is being used, either embedded in wysiwygs or referenced in other ways.

marcoscano’s picture

stevenx’s picture

Thanks, I applied the patch, it solves this issue. It's a different workflow than I like but it is ok.

stevenx’s picture

Status: Active » Closed (works as designed)