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.