Skip to content

zh-CN: create Clipboard.read() #27464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 15, 2025
Merged

zh-CN: create Clipboard.read() #27464

merged 5 commits into from
Jun 15, 2025

Conversation

PassionPenguin
Copy link
Contributor

No description provided.

@PassionPenguin PassionPenguin requested a review from a team as a code owner June 1, 2025 14:52
@PassionPenguin PassionPenguin requested review from t7yang and removed request for a team June 1, 2025 14:52
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jun 1, 2025
Copy link
Contributor

github-actions bot commented Jun 1, 2025

Preview URLs

Flaws (1)

URL: /zh-CN/docs/Web/API/Clipboard/read
Title: Clipboard:read() 方法
Flaw count: 1

  • macros:
    • Macro produces link /zh-CN/docs/Web/JavaScript/Reference/Array which is a redirect
External URLs (2)

URL: /zh-CN/docs/Web/API/Clipboard/read
Title: Clipboard:read() 方法

(comment last updated: 2025-06-10 07:27:49)

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some suggestions


- `unsanitized` {{optional_inline}}

- : 包含字符串的数组({{jsxref("Array")}}),这些字符串为在从剪贴板读取时不应被清理的数据格式的 MIME 类型。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- : 包含字符串的数组({{jsxref("Array")}}),这些字符串为在从剪贴板读取时不应被清理的数据格式的 MIME 类型。
- : 包含字符串的数组({{jsxref("Array")}}),这些字符串为在从剪贴板读取时不应被净化的数据格式的 MIME 类型。

</textarea>
<button id="copy">复制 HTML</button>
<button id="paste_normal">粘贴 HTML</button>
<button id="paste_unsanitized">粘贴未清理的 HTML</button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<button id="paste_unsanitized">粘贴未清理的 HTML</button>
<button id="paste_unsanitized">粘贴未净化的 HTML</button>


- [Clipboard API](/zh-CN/docs/Web/API/Clipboard_API)
- web.dev 上的[解锁剪贴板权限](https://web.developers.google.cn/articles/async-clipboard)
- developer.google.cn 上的[异步 Clipboard API 中的未清理的 HTML](https://developer.chrome.google.cn/docs/web-platform/unsanitized-html-async-clipboard)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- developer.google.cn 上的[异步 Clipboard API 中的未清理的 HTML](https://developer.chrome.google.cn/docs/web-platform/unsanitized-html-async-clipboard)
- developer.google.cn 上的[异步 Clipboard API 中的未净化的 HTML](https://developer.chrome.google.cn/docs/web-platform/unsanitized-html-async-clipboard)


#### 结果

首先单击“复制 HTML”按钮,将第一个文本区域中的 HTML 代码写入剪贴板。然后单击“粘贴 HTML”按钮或“粘贴未净化的 HTML”按钮,将清理或未清理的 HTML 代码粘贴到第二个文本区域中。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
首先单击“复制 HTML”按钮,将第一个文本区域中的 HTML 代码写入剪贴板。然后单击“粘贴 HTML”按钮或“粘贴未净化的 HTML”按钮,将清理或未清理的 HTML 代码粘贴到第二个文本区域中。
首先单击“复制 HTML”按钮,将第一个文本区域中的 HTML 代码写入剪贴板。然后单击“粘贴 HTML”按钮或“粘贴未净化的 HTML”按钮,将净化或未净化的 HTML 代码粘贴到第二个文本区域中。

清理 => 净化
@yin1999 yin1999 changed the title zh-CN: create Clipboard/read zh-CN: create Clipboard.read() Jun 15, 2025
@yin1999 yin1999 merged commit b15741c into mdn:main Jun 15, 2025
6 checks passed
@github-project-automation github-project-automation bot moved this from Review requested to Done in MDN translated-content l10n-zh Jun 15, 2025
@PassionPenguin PassionPenguin deleted the clip-2 branch June 16, 2025 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants