I had a little issue on my site with a bootstrap theme. Instead of showing up the "insert xyz" entity popup, I got the following console error:
TypeError: Drupal.theme.bootstrapModal is not a function

I had to patch the file "entity_embed.routing.yml" and added the following two lines of code at the end of the file:

  options:
    _theme: ajax_base_page

After this little tweak, the entity browser opens nicely in a modal window.
Hope this helps somebody.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michèle created an issue. See original summary.

Macronomicus’s picture

yea, that was needed, otherwise it doesnt work at all for me.

akalam’s picture

Worked for me. Thanks Michèle. Patch attached

smk-ka’s picture

Status: Needs review » Reviewed & tested by the community
Related issues: +#2640086: Editor routes don't use the ajax_base_page theme negotiator

That fixed it. Linked related core issue for reference.

Dave Reid’s picture

Pull request created at https://github.com/drupal-media/entity_embed/pull/211 for merging.

  • Dave Reid committed 633b81a on 8.x-1.x authored by akalam
    Issue #2678324 by akalam: Fixed dialog route did not use the...
  • Dave Reid committed b8baa3d on 8.x-1.x
    Merge pull request #211 from drupal-media/2678324-use-ajax-base-theme-...
Dave Reid’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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