0
Thunderbird Addon에서 PasteHyperlink이라고 불리는 메시지 작성 창에 html 요소를 삽입하는 루틴이 있습니다. insertElementAtSelection이 작동을 멈췄습니다
이
썬더 버드에서 작동하는 데 사용하지만, 지금은이 오류를 JS 얻을 :Error: TypeError: thiseditor.insertElementAtSelection is not a function
그러나, 경고를 실행하지 않기 때문에 thiseditor
정의됩니다 것으로 보인다. 여기
var thiseditor = gMsgCompose.editor;
if (!thiseditor){ alert("Dude, the gMsgCompose.editor is broken") };
let link = thiseditor.document.createElement("a");
link.setAttribute("href", "http://stackoverflow.com");
link.textContent = "Display Text";
thiseditor.insertElementAtSelection(link, false);
MDN has this documentation,하지만 난이에 후드 변경 어떤 고장 또는 이유에 대해 이야기 그 어느 곳 아무것도 찾을 수 없습니다 Thunderbird 45.
왜이 기능이 작동하지 않고 대신 무엇을해야합니까?