[英]TinyMCE Editor unable to select when table td contains span tag in IE11 only . Not working in all Tinymce versions
http://fiddle.tinymce.com/u0gaab/1
它認為問題與valid_elements
。 當我刪除此span
標記被刪除。 在Chrome中運行正常。 由於無法修改HTML代碼,因此無法更改有效元素。 我們可以使用IE11的任何腳本或某些polyfill來處理嗎?
我自己找到了解決方案
這是解決方案:
添加到tinymce init:init_instance_callback:“ checkIEBlankIssue”
function checkIEBlankIssue(e) { if(tinyMCE.isIE) { e.on('click', function (e) { if(e.target.innerText === ""){ // fields not selecting if the content inside is blank tinyMCE.activeEditor.selection.setNode(e.target); } }); } }
在ie中手動選擇節點
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.