The Youtube Gutenberg block makes you enter a Youtube Url, then shows the video... until you select it and select "edit" on the toolbar, see the url and change if you want. I understand the edit experience is from the edit function and save function creates the fallback html in case the plugin fails or isn't installed...
Most of the howtos I have found don't include that preview/edit part - is there example source code to make it not only save but then show preview, then allow a toolbar to go back to editor from wysiwyg?
The Youtube Gutenberg block makes you enter a Youtube Url, then shows the video... until you select it and select "edit" on the toolbar, see the url and change if you want. I understand the edit experience is from the edit function and save function creates the fallback html in case the plugin fails or isn't installed...
Most of the howtos I have found don't include that preview/edit part - is there example source code to make it not only save but then show preview, then allow a toolbar to go back to editor from wysiwyg?
The goodness of Open Source Softwares is that you can always look into the source code. You can find the source code of embed block of Gutenberg from here https://github/WordPress/gutenberg/tree/master/packages/block-library/src/embed. It will be complex as it's a combination of multiple embeds so be careful by studying it.