錯誤的元素我有一個具有CKEditor的執行一些文本編輯主頁面。 CKEditor的包含以下元素:CKEDITOR selection.getStartElement()給在Chrome
<address>Address<address><pincode>123456</pincode>
我試圖讓焦點元素爲
editorinstance1.focus();
var temp =editorinstance1.getSelection().getStartElement();
或
var temp =editorinstance1.document.getSelection().getStartElement();
當我pin碼元素的第一個字符之前單擊
其實我需要光標位置,如
<pincode>[cursor here]123456</pincode>
代碼除了鉻
鉻返回地址元素做工精細。
如何獲取正確的元素。 只是我用HTML也同樣的問題進行檢查。(http://jsfiddle.net/z5ABt/2/)
我也報道了code.google.com/p/chromium/issues/detail?id=337757
我應該使用嵌套contenteditable.bug報告發布鏈接請 – RGA
http://code.google.com/p/chromium/issues/list – Stijn