You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elemental2 version : 1.0.0-RC1
The document object provided by DomGloabl does not have the execCommand function property
as a workaround i extended the HTMLDocument type and added the function and it worked out
@jstype(isNative = true, namespace = JsPackage.GLOBAL)
public class MyDocument extends HTMLDocument {
public native boolean execCommand(String aCommandName, boolean aShowDefaultUI, String aValueArgument);
}
Elemental2 version : 1.0.0-RC1
The document object provided by DomGloabl does not have the execCommand function property
as a workaround i extended the HTMLDocument type and added the function and it worked out
@jstype(isNative = true, namespace = JsPackage.GLOBAL)
public class MyDocument extends HTMLDocument {
public native boolean execCommand(String aCommandName, boolean aShowDefaultUI, String aValueArgument);
}
the function seems to exist for gecko_dom extern in closure compiler
https://github.com/google/closure-compiler/blob/41a4dcce5ec80df173e3b5f22f93eabb6ee525a3/externs/browser/gecko_dom.js#L497
other links
https://www.w3.org/TR/clipboard-apis/
https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand
The text was updated successfully, but these errors were encountered: