cofoundry icon indicating copy to clipboard operation
cofoundry copied to clipboard

Open page block Visual Editor from anywhere

Open ernestoSerra opened this issue 6 years ago • 3 comments

Hi, I would to know if there are any way to open visual editor modal from custom plugin controller class. image

I would like to redirect to corresponent page with mode-edition and after open the block editor directly as if I had pressed the edit button of a block in the visual editor.

Thanks.

ernestoSerra avatar Dec 17 '18 14:12 ernestoSerra

No that is not supported. How would you know which block to open? Do you know the Id of the block you want to display?

We did some work on being able to edit block data from the back-office panel (#66), but we hit a road-block on that with the way regions are defined. We'll pick that up a bit further down the line.

HeyJoel avatar Dec 17 '18 16:12 HeyJoel

Yes, I have the Id of the block.

ernestoSerra avatar Dec 18 '18 07:12 ernestoSerra

I don't think we'd be working on this any time soon, but this functionality might come in as part of #68 or there's a couple of other enhancements I've got in mind for the visual editor system that might also cover your issue.

I'm still not sure exactly why you need to link out to a block in this way, but if you could let me know your scenario it might help shape this or other features - it sounds like you might be working around an issue that could be solved in another way.

HeyJoel avatar Dec 23 '18 12:12 HeyJoel