clipboard ops

クリップボード (Web)

仕様書

命令

[32] 次の execCommand 命令があります。

処理

[33] 次の動作があります。

利用者インターフェイス

[14] 多くの Webブラウザーは、表示中の文書の選択範囲や画像コピー機能を提供しています。

[15] 多くの Webブラウザー (や OSウィンドウマネージャー等) は表示中の文書中のテキストボックスにおける切り取りコピー貼り付け機能を提供しています。

[16] 多くの Webブラウザーは、表示中の文書中のリンク画像URLコピー機能を提供しています。


[29] 多くの Webブラウザーでは、編集可能文脈貼り付けショートカットキー (Windows では Ctrl + V) を押すと、クリップボードの内容をその位置に挿入します。 選択があれば、選択範囲がそれで置き換えられます。

MIME 型

[52] WindowsChromenavigator.clipboard.writetext/plain を書き込めます。 text/csv, text/html, application/xml, application/json は未対応エラーになります。

歴史

[31] 最速インターフェース研究会 :: Firefoxでテキストをクリップボードにコピーする方法 http://la.ma.la/blog/diary_200601100445.htm (名無しさん 2006-01-10 01:36:54 +00:00)

[30] Clipboard Operations for the Web 1.0: Copy, Paste, Drag and Drop. http://www.w3.org/TR/2006/WD-clipboard-apis-20061115/ (名無しさん 2006-11-16 12:23:16 +00:00)

[1] Clipboard API and events ( ( 版)) http://lists.w3.org/Archives/Public/public-webapps/2010OctDec/att-1067/cbapispec.html

[2] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2012/WD-clipboard-apis-20120223/

[3] [clipboard] Feature detect Clipboard API support? (James M. Greene 著, 版) https://lists.w3.org/Archives/Public/public-webapps/2015JanMar/0592.html

[4] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2011/WD-clipboard-apis-20110412/

[5] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2013/WD-clipboard-apis-20130411/

[6] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2014/WD-clipboard-apis-20140313/

[7] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2014/WD-clipboard-apis-20140918/

[8] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2014/WD-clipboard-apis-20141209/

[9] IRC logs: freenode / #whatwg / 20150415 ( 版) http://krijnhoetmer.nl/irc-logs/whatwg/20150415#l-163

# [05:17] <MikeSmith> does anybody remember what's holding us up from adding "Copy to clipboard" support to the platform?

# [07:49] <JakeA> MikeSmith: I think we just added it to Canary

# [08:07] <MikeSmith> JakeA: ah cool

# [08:33] <JakeA> MikeSmith: I believe it's document.execCommand('copy') from an interaction event

# [10:03] <botie> darobin, at 2015-04-15 06:54 UTC, MikeSmith said: what's the current spec for document.execCommand('copy') etc

# [10:08] <darobin> MikeSmith: last I checked you still needed a mix of https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html and http://dev.w3.org/2006/webapi/clipops/clipops.html

[10] Clipboard API and events ( 版) http://dev.w3.org/2006/webapi/clipops/clipops.html

[11] Cut and Copy Commands ( 版) http://updates.html5rocks.com/2015/04/cut-and-copy-commands

IE10 and above added support for the ‘cut’ and ‘copy’ commands through the Document.execCommand() method. As of Chrome version 43, these commands are also supported in Chrome.

[12] 1151429 – Allow JS to copy text to the clipboard by triggering document.execCommand('copy') or document.execCommand('cut') in user-initiated thread ( 版) https://bugzilla.mozilla.org/show_bug.cgi?id=1151429

[13] 1012662 – implement click-to-copy and click-to-cut permissions (semi-trusted events) ( 版) https://bugzilla.mozilla.org/show_bug.cgi?id=1012662

[17] Clipboard API and events ( ( 版)) http://www.w3.org/TR/2015/WD-clipboard-apis-20150421/

[18] [clipboard] Dilemma: getData('text/html') and useful CF_HTML quirks (Hallvord Reiar Michaelsen Steen 著, 版) https://lists.w3.org/Archives/Public/public-webapps/2015AprJun/0228.html

[19] Intent to implement and ship: document.execCommand("cut"/"copy") ( 版) https://lists.mozilla.org/pipermail/dev-platform/2015-June/010180.html

[20] Bug 146336 – Implement unprivileged execCommand("copy") and execCommand("cut") ( 版) https://bugs.webkit.org/show_bug.cgi?id=146336

[21] 1012662 – Allow document.execCommand("cut"/"copy") to be used within the context of user generated events ( 版) https://bugzilla.mozilla.org/show_bug.cgi?id=1012662

[22] Issue 424968 - chromium - Cannot access to clipboard access via Javascript - An open-source project to help move the web forward. - Google Project Hosting ( 版) https://code.google.com/p/chromium/issues/detail?id=424968

[23] 860857 – Support custom mimetypes via clipboardData for clipboard events ( 版) https://bugzilla.mozilla.org/show_bug.cgi?id=860857

[24] Clipboard API and events ( 版) https://www.w3.org/TR/2016/WD-clipboard-apis-20160311/

[25] Clipboard API and events ( 版) https://www.w3.org/TR/2016/WD-clipboard-apis-20160403/

[26] Re: [clipboard] Add RTF to the "mandatory data types" list? ( (Hallvord Reiar Michaelsen Steen著, )) https://lists.w3.org/Archives/Public/public-webapps/2016AprJun/0129.html

[27] New editors for Clipboard API spec (Chaals McCathie Nevile著, ) https://lists.w3.org/Archives/Public/public-webapps/2016JulSep/0023.html

[34] Clipboard API and events () https://www.w3.org/TR/2016/WD-clipboard-apis-20161213/

[35] Bikeshed version of current Clipboard APIs spec (garykac著, ) https://github.com/w3c/clipboard-apis/commit/5c704c9d92252232a7f90fb7ed4dc1eb33b0d7f8

[36] Add initial draft of Async API read() and write(). (garykac著, ) https://github.com/w3c/clipboard-apis/commit/3ffdbba8580e0096aa7d492d49e1309001d25162

[37] Add clipboard change event (garykac著, ) https://github.com/w3c/clipboard-apis/commit/bd06a15292cbfee8da5b62eb70854065e2a77152

[38] Fix #54: Add [Exposed] to interfaces (garykac著, ) https://github.com/w3c/clipboard-apis/commit/4aef1c5273afcb8e022c10f2e4469e971c9ec082

[39] Clipboard API and events () https://www.w3.org/TR/2017/WD-clipboard-apis-20170929/

[40] Update permissions to be clipboard-read and clipboard-write (garykac著, ) https://github.com/w3c/clipboard-apis/commit/aa1f8ac45ffc3ff9035fa64519c5c822ab28469c

[41] Update security section with examples (garykac著, ) https://github.com/w3c/clipboard-apis/commit/3539df25f362afb96340afc26712243339fc7891

[42] Copy explainer over from garykac/clipboard/clipboard.md (garykac著, ) https://github.com/w3c/clipboard-apis/commit/9315cca1d51cbb423112076cec11d82d5bebadb2

[43] Add section on Clipboard Permissions (garykac著, ) https://github.com/w3c/clipboard-apis/commit/7418000db08f777c98e171b65882607871b539df

[44] Unblocking Clipboard Access  |  Web  |  Google Developers () https://developers.google.com/web/updates/2018/03/clipboardapi

[45] Clipboard API Improvements | WebKit () https://webkit.org/blog/8170/clipboard-api-improvements/

[46] New WebKit Features in Safari 11.1 | WebKit () https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/

[47] New in Chrome 66  |  Web  |  Google Developers () https://developers.google.com/web/updates/2018/04/nic66?utm_source=feed&utm_medium=feed&utm_campaign

[48] Remove duplicated sentence in "pick target"-algorithm (hugoholgersson著, ) https://github.com/w3c/clipboard-apis/commit/1f8f6a3c09bbfa3613ea977a1746de4c7121bf03

[49] Emphasize visability in the "pick target"-algorithm by hugoholgersson · Pull Request #58 · w3c/clipboard-apis () https://github.com/w3c/clipboard-apis/pull/58

[50] Clarify how ClipboardEvents' targets are chosen (hugoholgersson著, ) https://github.com/w3c/clipboard-apis/commit/0f1e72e2b5c019b08174c79781c9929b660d57f6

[51] Fix algorithm for firing a clipboard event (garykac著, ) https://github.com/w3c/clipboard-apis/commit/11619a7e2a8537f8c60eb05f76b192cfa909b30a