[wp-hackers] Shortcode image replacement in visual editor WP3.5
johnbillion+wp at gmail.com
Sun Mar 10 19:36:57 UTC 2013
On 8 March 2013 10:51, Tom Barrett <tcbarrett at gmail.com> wrote:
> I have some shortcodes where I'm replacing the shortcode text in the visual
> editor with an image (like the [gallery] shortcode). There is no attachment
> post associated, it is just to provide a nice UI.
> I do this by creating a tinymce plugin; copying much from WP core (at the
> time). The popup edit page is loaded (hidden) and then trigger by invoking
> thickbox. It's a little fiddly. And was all written a while ago.
> Is there a nice(r) way of doing this with 3.5, or is it very
> attachment-image focussed?
Support for 'views' in TinyMCE was planned for 3.5 but there were bugs
which didn't get ironed out, so it was punted . I haven't yet seen
the ticket for (or any discussion of) this for 3.6 though.
More information about the wp-hackers