I'm creating a plugin similar to https://www.wpbeaverbuilder.com/ You can drag & drop elements to create layouts, etc.
What would be the best way to store post content in this case? Ideally it shouldn't be lost after disabling the plugin.
Current options are:
- save to WP_POSTS table as shortcodes
- create my own table, store there in JSON, and then populate WP_POSTS table with generated HTML
I don't like both, because shortcodes will make it hard to switch as you're bound to generated shortcodes (though you'll have a workaround there). HTML is fine until user needs to make edits.