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