Closed (fixed)
Project:
Entity Embed
Version:
8.x-1.x-dev
Component:
CKEditor integration
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2015 at 18:48 UTC
Updated:
28 Apr 2016 at 03:44 UTC
Jump to comment: Most recent


Comments
Comment #1
cs_shadow commentedComment #2
cs_shadow commentedThis is definitely a bug and might be slightly tricky to solve. Since {embed_button} in our routes is upcasted to its corresponding entity automatically, we can't simply use something like "BUTTON_NOT_DEFINED".
The only other option which seems feasible at the moment is adding a dummy button of sorts which we never display in the ckeditor configuration forms. This way, when the ParamConverter system tries to upcast the entity, it won't fail. This dummy button can be the default parameter for our routes so whenever
data-embed-buttonis not defined, we use that button.I realize this is not a very neat solution so would love more suggestions on this.
Comment #3
dave reidActually, it looks like this was simpler than we thought to solve: https://github.com/drupal-media/entity_embed/pull/215
Comment #5
dave reid