AesopInteractive / lasso

Code Repository for Editus (formerly Lasso) Commercial Plugin
https://edituswp.com
GNU General Public License v2.0
147 stars 25 forks source link

Transform Shortcodes into HTML on Uninstall #24

Open michaelbeil opened 9 years ago

michaelbeil commented 9 years ago

When a user un-installs editor, AND Aesop Story Engine is activated, go through each post and transform each of the shortcodes into real HTML.

When the user reactivates the editor, AND Aesop Story Engine is active, map those pieces of HTML back to the shortcodes.

ref http://nickhaskins.com/2015/01/brackets-aint-empty-cuz/

bearded-avenger commented 9 years ago

I'd like to get this in before 1.0 for sure

bearded-avenger commented 9 years ago

some things I was thinking about

on reactivation - or button click may be too intensive on activation

bearded-avenger commented 9 years ago

so some ideas from @Shelob9 and I's chat

But maybe if every Aesop element had a "sensible default markup" mode that could get outputted as HTML in this process.

Like quotes, just make them regular <blockquote> and for videos use a normal embed.

bearded-avenger commented 9 years ago

mani wonder if this coudlnt be a universal type thing, where it could benefit more than just us. so if it was a sep plugin, it could have a cb function for the default markup, a place to define the slug for the shortcode, etc. just a thought.