Enhance context menu with plugin

Hi Dato community,

Is it me or is this feature new ? https://www.datocms.com/docs/plugin-sdk/dropdown-actions

I think it could do the job … let’s try :slight_smile:

Regarding this feature, do you think there is a way to get the Modular Block JSON structure just like you do with “Copy to clipboard” in localstorage ?

What I would like to do is pretty simple:

  • The user selects 2 Modular blocks he’s created
  • Then, I would like to add a new button in the global context menu bar “Copy selection”:

  • or at field level, a new entry in context menu “Copy selection”:

  • when clicking on the this button, it would get a copy of the selected Blocks as JSON.

Is it something possible ?

Thanks for your help.