mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-28 16:35:46 +01:00
Fix bug.
This commit is contained in:
@@ -382,9 +382,14 @@ const Editor = Module("editor", {
|
|||||||
|
|
||||||
if (elem instanceof Element)
|
if (elem instanceof Element)
|
||||||
return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor;
|
return elem.QueryInterface(Ci.nsIDOMNSEditableElement).editor;
|
||||||
return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation)
|
try {
|
||||||
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession)
|
return elem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation)
|
||||||
.getEditorForWindow(elem);
|
.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIEditingSession)
|
||||||
|
.getEditorForWindow(elem);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getController: function () {
|
getController: function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user