我正在使用wordpress,我在编辑器上添加了一些按钮 我想触发点击它的触发点击 但不能打开灯箱
例如,按钮代码看起来像
<td style="position: relative">
<a title="Add New Alert" aria-labelledby="content_admin_alert_voice" onClick="return false;" onMouseDown="return false;" class="mceButton mceButtonEnabled mce_admin_alert" href="javascript:;" id="content_admin_alert" role="button" tabindex="-1">
<img alt="Add New Alert" src="http://www.xyz.com/themes/abc/wp-content/themes/abc/admin/js/../img/icon-alert.png" class="mceIcon"><span id="content_admin_alert_voice" style="display: none;" class="mceVoiceLabel mceIconOnly">
Add New Alert
</span>
</a>
</td>
我正在点击#content_admin_alert,但操作不会像我们实际点击该按钮那样发生
答案 0 :(得分:0)
我暂时没有使用TinyMCE,但onClick和onMouseDown事件返回false,这实际上会取消任何点击操作。