Site icon Hip-Hop Website Design and Development

Set default picture hyperlink goal in Gutenberg picture block

I need to set the default goal of the picture block in Gutenberg to “Media File”:

I’ve discovered options for the basic editor, and one which seems to work for Gutenberg galleries by modifying the block’s template, however I used to be below the impression that the supposed technique to modify the editor’s behaviour is through JavaScript hooks within the block editor.

Is there a technique to set the default goal utilizing a JavaScript hook within the block editor?

UPDATE: I made a pull request on the Gutenberg GitHub repository to attempt to implement the power to override the default hyperlink goal with a plugin. The most recent model is right here. As of writing, this has not but been merged.