Carmo Copy to Clipboard

外掛說明

This plugin will add a new copy to clipboard functionality to Gutenberg Code Block.
It will add a copy button at the top right corner of the block. After clicked, it will select the text, copy to clipboard, and after copy it will deselect the copied text. No markup here.

This plugin makes use of two javascript libraries:
Clipboard.js and Prism.js

螢幕擷圖

  • Example of two code blocks next to each other
  • Example of a small code block
  • Example of a code block when the copy button is pressed

常見問題集

It only aftects Gutenberg code blocks?

Yes. It would only affect blocks that are equal to core/code type.

Why that the block style is black?

It’s one of the default themes of Prism. In the future we may add more styles.

使用者評論

閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Carmo Copy to Clipboard〉的開發相關工作。

參與者

將〈Carmo Copy to Clipboard〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0

  • First Version.