Open danbars opened 5 years ago
Adding to my previous question - an opposite example is the raw html plugin - it only show the edit mode and you can't move to preview mode. I think that in order to get really useful editor there shoiuld be some way to move between preview and edit mode.
Any thoughts on this?
You can make your own parser to convert the JSON to HTML then create a toggle button to switch between the editor and a div w/c loads the converted HTML code.
Sharing you an example.
I'm trying to understand what is the approach of edit vs. preview modes. 2 examples:
Assuming I want to build plugins that allow editing after initial setup what is the right approach to do so? Ideally I'd like to show some popover tool that allows editing different properties of the block. Is there some example of something like that?
Thanks