我想在 wordpress 编辑器中插入一些短代码(v 3.3+)
字符串看起来像
[a_col]<p>some text or other stuff</p>[/a_col]
这很好,但如果我在 JS 中使用这一行
tinyMCE.get('content').setContent(string);
我的简码被 p 标签包围,看起来像
<p>[a_col]</p><p>some text or other stuff</p><p>[/a_col]</p>
我真的不喜欢接触原生功能。也许有不同的解决方案来插入内容