[wp-testers] Shortcodes in TinyMCE

Austin Matzko if.website at gmail.com
Mon May 25 08:17:25 GMT 2009


On Mon, May 25, 2009 at 3:11 AM, Dion Hulse(DD32) <wordpress at dd32.id.au> wrote:
> Yes.. Through a custom TinyMCE plugin. Have a look at how [gallery] is rendered when inserted from the add-media page for example.

It uses a regular expression to replace the shortcode text with
markup, by attaching a callback to the TinyMCE onBeforeSetContent
event[1].

[1] http://wiki.moxiecode.com/index.php/TinyMCE:API/tinymce.Editor/onBeforeSetContent


More information about the wp-testers mailing list