From 324e69ea8f1d9fafba40e5a838e233c8d4fec9d4 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Wed, 2 Feb 2022 09:26:26 +0900 Subject: [ko] Update ClipboardEvent docs (#3908) --- .../api/clipboardevent/clipboarddata/index.html | 51 ---------------- .../web/api/clipboardevent/clipboarddata/index.md | 44 ++++++++++++++ files/ko/web/api/clipboardevent/index.html | 67 ---------------------- files/ko/web/api/clipboardevent/index.md | 49 ++++++++++++++++ 4 files changed, 93 insertions(+), 118 deletions(-) delete mode 100644 files/ko/web/api/clipboardevent/clipboarddata/index.html create mode 100644 files/ko/web/api/clipboardevent/clipboarddata/index.md delete mode 100644 files/ko/web/api/clipboardevent/index.html create mode 100644 files/ko/web/api/clipboardevent/index.md diff --git a/files/ko/web/api/clipboardevent/clipboarddata/index.html b/files/ko/web/api/clipboardevent/clipboarddata/index.html deleted file mode 100644 index 7334fa7e83..0000000000 --- a/files/ko/web/api/clipboardevent/clipboarddata/index.html +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: ClipboardEvent.clipboardData -slug: Web/API/ClipboardEvent/clipboardData -translation_of: Web/API/ClipboardEvent/clipboardData ---- -

{{ apiref("Clipboard API") }} {{SeeCompatTable}}

- -

ClipboardEvent.clipboardData 속성은 {{domxref("DataTransfer")}} 객체를 가지고 있으며, 아래와 같은 목적으로 사용될 수 있습니다:

- - - -

더 많은 정보를 확인하려면 {{event("cut")}}, {{event("copy")}}, and {{event("paste")}} 이벤트에 관한 문서를 참고하세요.

- -

Syntax

- -
data = ClipboardEvent.clipboardData
- -

Specifications

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{ SpecName('Clipboard API', '#widl-ClipboardEvent-clipboardData', 'ClipboardEvent.clipboardData') }}{{ Spec2('Clipboard API') }}Initial definition.
- -

Browser compatibility

- - - -

{{Compat("api.ClipboardEvent.clipboardData")}}

- -

See also

- - diff --git a/files/ko/web/api/clipboardevent/clipboarddata/index.md b/files/ko/web/api/clipboardevent/clipboarddata/index.md new file mode 100644 index 0000000000..23b55e2663 --- /dev/null +++ b/files/ko/web/api/clipboardevent/clipboarddata/index.md @@ -0,0 +1,44 @@ +--- +title: ClipboardEvent.clipboardData +slug: Web/API/ClipboardEvent/clipboardData +tags: + - API + - Clipboard + - Clipboard API + - ClipboardEvent + - Cut + - Experimental + - Property + - Read-only + - copy + - paste +browser-compat: api.ClipboardEvent.clipboardData +translation_of: Web/API/ClipboardEvent/clipboardData +--- +{{APIRef("Clipboard API")}} {{SeeCompatTable}} + +**`ClipboardEvent.clipboardData`** 속성은 다음과 같은 용도로 사용할 수 있는 {{domxref("DataTransfer")}} 객체입니다. + +- {{event("cut")}}과 {{event("copy")}} 이벤트 처리기 내에서, 어떤 데이터를 클립보드에 넣어야 하는지 지정하기. 보통 {{domxref("DataTransfer.setData", "setData(format, data)")}}를 호출해서 수행합니다. +- {{event("paste")}} 이벤트 처리기 내에서 데이터를 가져오기. 보통 {{domxref("DataTransfer.getData", "getData(format)")}}을 호출해서 수행합니다. + +{{event("cut")}}, {{event("copy")}}, {{event("paste")}} 이벤트 문서에서 자세한 정보를 확인하세요. + +## 구문 + +```js +data = ClipboardEvent.clipboardData +``` + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- 복사 관련 이벤트: {{event("copy")}}, {{event("cut")}}, {{event("paste")}} +- 이 속성이 속한 {{domxref("ClipboardEvent")}} 인터페이스. diff --git a/files/ko/web/api/clipboardevent/index.html b/files/ko/web/api/clipboardevent/index.html deleted file mode 100644 index 332846c031..0000000000 --- a/files/ko/web/api/clipboardevent/index.html +++ /dev/null @@ -1,67 +0,0 @@ ---- -title: ClipboardEvent -slug: Web/API/ClipboardEvent -tags: - - API - - Clipboard API - - Event - - Experimental - - Interface - - NeedsTranslation - - TopicStub -translation_of: Web/API/ClipboardEvent ---- -

{{APIRef("Clipboard API")}} {{SeeCompatTable}}

- -

The ClipboardEvent interface represents events providing information related to modification of the clipboard, that is {{event("cut")}}, {{event("copy")}}, and {{event("paste")}} events.

- -

Constructor

- -
-
{{domxref("ClipboardEvent.ClipboardEvent", "ClipboardEvent()")}}
-
Creates a ClipboardEvent event with the given parameters.
-
- -

Properties

- -

Also inherits properties from its parent {{domxref("Event")}}.

- -
-
{{domxref("ClipboardEvent.clipboardData")}} {{readonlyInline}}
-
Is a {{domxref("DataTransfer")}} object containing the data affected by the user-initiated {{event("cut")}}, {{event("copy")}}, or {{event("paste")}} operation, along with its MIME type.
-
- -

Methods

- -

No specific methods; inherits methods from its parent {{domxref("Event")}}.

- -

Specifications

- - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{ SpecName('Clipboard API', '#clipboard-event-interfaces', 'ClipboardEvent') }}{{ Spec2('Clipboard API') }}Initial definition.
- -

Browser compatibility

- - - -

{{Compat("api.ClipboardEvent")}}

- -

See also

- - diff --git a/files/ko/web/api/clipboardevent/index.md b/files/ko/web/api/clipboardevent/index.md new file mode 100644 index 0000000000..999b9b35b8 --- /dev/null +++ b/files/ko/web/api/clipboardevent/index.md @@ -0,0 +1,49 @@ +--- +title: ClipboardEvent +slug: Web/API/ClipboardEvent +tags: + - API + - Clipboard + - Clipboard API + - Cut + - Event + - Experimental + - Interface + - copy + - paste +browser-compat: api.ClipboardEvent +--- +{{APIRef("Clipboard API")}} {{SeeCompatTable}} + +**`ClipboardEvent`** 인터페이스는 {{event("cut")}}, {{event("copy")}}, {{event("paste")}} 이벤트처럼 클립보드 조작에 대한 정보를 제공하는 이벤트를 나타냅니다. + +## 생성자 + +- {{domxref("ClipboardEvent.ClipboardEvent", "ClipboardEvent()")}} + - : 주어진 매개변수로 `ClipboardEvent`를 생성합니다. + +## 속성 + +{{domxref("Event")}} 인터페이스의 속성을 상속합니다. + +- {{domxref("ClipboardEvent.clipboardData")}} {{readonlyInline}} + - : 사용자가 실행한 {{event("cut")}}, {{event("copy")}}, {{event("paste")}} 작업에서 영향을 받은 데이터를 담은 {{domxref("DataTransfer")}} 객체입니다. 데이터의 MIME 유형도 포함합니다. + +## 메서드 + +{{domxref("Event")}} 인터페이스의 메서드를 상속합니다. + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- 복사 관련 이벤트: {{event("copy")}}, {{event("cut")}}, {{event("paste")}} +- [Clipboard API](/ko/docs/Web/API/Clipboard_API) +- [Async Clipboard API 데모 (Glitch)](https://async-clipboard-api.glitch.me/) +- [web.dev의 Async Clipboard API](https://web.dev/image-support-for-async-clipboard/) -- cgit v1.2.3-54-g00ecf