Pass field editor data into plugins ctx object

I’ve written an addon plugin and i want to tailor the options displayed based on teh validators the user has chosen.

The ctx object however does not contain any information pertaining to the field your currently editing. As such whilst i can get the details of the model, i’m unable to select the data/validators, for the field being currently edited.

My Plugin

Implemented! You can now access ctx.pendingField to get the details of the field being edited inside the renderManualFieldExtensionConfigScreen hook, and ctx.itemType to get the model/block that holds the field!

1 Like