Closed (fixed)
Project:
Entity Embed
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2014 at 12:09 UTC
Updated:
13 Jan 2015 at 22:04 UTC
Jump to comment: Most recent
In #2350463: Previewing an entity in the WYSIWYG does not add any attached styles or javascript from the AJAX callback we added attachs/deattachs to embedded entity. To prevent strange things from happening we hardcoded list of behaviours that are not attached. It would be nice to make that list configurable.
See https://github.com/drupal-media/entity_embed/pull/103#issuecomment-60486887 for more info.
Comments
Comment #1
cs_shadow commentedSo, how much configurable are we talking here. Meaning do we just want configuration schema or also through UI?
Comment #2
yched commentedYeah, not sure "configurable" is the right word here, I was thinking more of making sure the list of behaviors can be adjusted for custom use cases if need be.
IMO it could be as simple as moving the list of excluded behaviors to a dedicated var in Drupal.entityEmbed, so that it can be overriden by custom JS.
Comment #3
cs_shadow commented@yched, Thanks for clearing this up. I thought we were talking about configuration through Configuration Management system.
PR: https://github.com/drupal-media/entity_embed/pull/113
Based on what @yched suggested in #2.
Comment #4
slashrsm commentedMerged. Thanks!