本文档介绍了如何在 TinyMCE 可视化编辑器中解析短代码,使其渲染实际内容而非短代码本身,并切换至文本标签可查看原始短代码。
It’s possible to parse shortcodes within the visual editor of TinyMCE and make them render actual content, rather than the shortcode itself.
Switching to the Text tab allows you to see the actual shortcode again.
Below are the built-in WordPress shortcodes that use this functionality.
The shortcode allows you to embed a single audio file.

The shortcode wraps the image in a div and puts a <p class="wp-caption-text"> tag around the caption.

The shortcode allows you to embed several images at once in a div.

The shortcode allows you to attach more than one media file and render with an html5 playlist.

The shortcode is very similar to the shortcode; it simply renders a video instead of audio.
