From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../api/document/querycommandsupported/index.html | 78 ++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 files/ja/web/api/document/querycommandsupported/index.html (limited to 'files/ja/web/api/document/querycommandsupported/index.html') diff --git a/files/ja/web/api/document/querycommandsupported/index.html b/files/ja/web/api/document/querycommandsupported/index.html new file mode 100644 index 0000000000..a28491b9bf --- /dev/null +++ b/files/ja/web/api/document/querycommandsupported/index.html @@ -0,0 +1,78 @@ +--- +title: Document.queryCommandSupported() +slug: Web/API/Document/queryCommandSupported +tags: + - API + - DOM + - Document + - Method + - Reference + - editor +translation_of: Web/API/Document/queryCommandSupported +--- +
{{ApiRef("DOM")}}{{obsolete_header}}
+ +

Document.queryCommandSupported() メソッドは、指定しされたエディターコマンドにブラウザーが対応しているかどうかを報告します。

+ +

構文

+ +
isSupported = document.queryCommandSupported(command);
+
+ +

引数

+ +
+
command
+
サポートしているかを調べるコマンド。
+
+ +

返値

+ +

{{jsxref("Boolean")}} で、コマンドがサポートされていれば true、そうでなければ false を返します。

+ +

+ +

'paste' コマンドは機能が利用できないときだけでなく、呼び出しスクリプトにそのコマンドを実行するための権限が不足しているときにも false を返します。

+ +

+ +
var flg = document.queryCommandSupported("SelectAll");
+
+if(flg) {
+  // ...何か行う
+}
+
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
execCommand
+ +

ブラウザーの互換性

+ +
+ + +

{{Compat("api.Document.adoptNode")}}

+
+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf