mciszczon/kirby-editor-lite-youtube-embed
Composer 安装命令:
composer require mciszczon/kirby-editor-lite-youtube-embed
包简介
Kirby Editor block for lite-youtube-embed
README 文档
README
Kirby Editor custom block to render
lite-youtube-embedcustom element based on Paul Irish's custom HTML element.
Installation
Step 1: Plugin installation
You can either use composer automatic installation, which is the preferred way:
$ composer require mciszczon/kirby-editor-lite-youtube-embed
or you can simply clone this repository to your plugins folder inside the Kirby CMS installation folder
(that's /your_project/site/plugins/):
$ git clone git@github.com:mciszczon/kirby-editor-lite-youtube-embed.git
Step 2: Setting up lite-youtube-embed assets
After that you will still need to include additional lite-youtube-embed assets in your templates,
otherwise the plugin will not work.
Again, you could go two ways here:
- You might want to manually install the package and manually include its assets into your current css and js assets;
- Or you can use assets that's already provided by this plugin.
If you choose to use the out-of-box-available assets provided by the plugin, call these in templates where the plugin is used:
<?= css('/media/plugins/mciszczon/kirby-editor-lite-youtube-embed/index.css') ?> <?= js('/media/plugins/mciszczon/kirby-editor-lite-youtube-embed/index.js') ?>
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-14