bradyvercher / gistpress

WordPress plugin to add Gist oEmbed and shortcode support with caching.
GNU General Public License v2.0
143 stars 28 forks source link

Content Editor Preview #54

Closed GaryJones closed 4 years ago

GaryJones commented 9 years ago

As reported at https://github.com/bradyvercher/gistpress/issues/53#issuecomment-89770579 the updated content editor that previews embedded media shows an Internal Error. It would be good to either show a rendering, or otherwise avoid the obvious error.

bradyvercher commented 9 years ago

Were you able to replicate the internal error? I'm not sure how to reproduce that.

Rendering the actual code might be a bit overwhelming for long snippets. That API is still experimental as well, so there's no commitment to backward compatibility, which has already caused issues in a different plugin I maintain.

GaryJones commented 9 years ago

Tagging @lmartins in case he can replicate or debug the cause of the error.

lmartins commented 9 years ago

I'll check if I can access the server logs to see if get something there.

nurtext commented 9 years ago

Btw: Any progress on this? Would be nice to have a editor preview for both URLs and shortcodes. Is there a WP API that's needs to be called by the plugin in order to get this working?

GaryJones commented 9 years ago

The last day or two, I've been playing with Shortcake (Shortcode UI), which offers preview of shortcodes in the Editor. So, no actual progress with this yet, but Shortcake (and it's potential inclusion in WP core) would seem a sensible way to go. See #56.

bradyvercher commented 4 years ago

Closing in favor of #75.