关于 iframe designMode 不能直接触发onclick,处理方法指定到:“contentWindow.document.onclick ”即可。

JavaScript脚本部分:

window.onload = function () {
            var editor = document.getElementById("ed");

            editor.contentWindow.document.designMode = "On";

             editor.contentWindow.document.onclick = function () {

                alert("触发click!");

            };
}

html标签部分:

<iframe id="ed"  scrolling="auto" frameborder="0" style="" marginwidth="0" 
marginheight="0" class="editText" allowtransparency="true"></iframe>