The module currently only works on nodes, and it uses the current route to load the node ID in order to get the entity ID.
This should be changed, in being able to load any entity type, and not use the route, so we can use this module in views.

Comments

alex.stanciu created an issue. See original summary.

staalex’s picture

This patch ditches node loading, and uses the entity manager to load any entity type, by its ID.
This also allows the module to be used in views.

staalex’s picture

Assigned: staalex » Unassigned
Status: Active » Needs review
littlepixiez’s picture

I couldn't actually get the jeditable field formatter to show up on any entities (using the alpha or dev branch) in their "Manage Display" or views until I applied this patch - I was scratching my head for ages! I can also confirm that it works on normal nodes and on my custom entities in both their displays and in views. Thank you for the patch.

nehajyoti’s picture

I have not tested the patch myself but as per mentioned in Comment #4 by @littlepixiez if patch is working fine, committing the patch to 8.x-1.x branch & making another release with alpha2.

nehajyoti’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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