CodePen Embed Block

描述

CodePen is an online code editor for front-end development. You build things (we call them Pens) with HTML, CSS, and JavaScript, and the languages and libraries that go along with those. Any Pen can be embedded on another site, making them useful for blog posts, documentation, forums, etc.

This block makes it easy to embed them. While oEmbed (just paste in a Pen URL!) also works for CodePen embeds in the block editor, this plugin allows for much more control, like setting the the height, theme, and default tabs.

屏幕截图

  • Adding a CodePen Embed block.
  • The block with all the options.

区块

该插件提供了 1 个区块.

  • CodePen Embed Embeds CodePen pens

安装

Install from the WordPress Plugin Directory.

常见问题

Why is this useful?

It’s helpful for embedding Pens you build (or others have built) on CodePen on your own WordPress site.

评价

2022 年 1 月 20 日
I write web development tutorials in my blog and have tried many syntax highlighter options for code snippets in the past. I recently decided to give Codepen a try and this plugin is surely the best way to embed and configure those!
阅读所有2条评价

贡献者及开发者

「CodePen Embed Block」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「CodePen Embed Block」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「CodePen Embed Block」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • Initial release

1.0.2

  • Added editable option

1.0.3

  • Tested up to WordPress 6.3.1

1.1.0

  • Added new setting for default theme ID

1.2.0

  • Rewritten using @wordpress/blocks builder
  • Update RegEx to support 2.0 editor URLs