Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mciszczon/kirby-editor-lite-youtube-embed
Kirby Editor custom block to render `lite-youtube-embed` component.
https://github.com/mciszczon/kirby-editor-lite-youtube-embed
kirby-cms kirby-panel kirby3 kirby3-plugin
Last synced: about 1 month ago
JSON representation
Kirby Editor custom block to render `lite-youtube-embed` component.
- Host: GitHub
- URL: https://github.com/mciszczon/kirby-editor-lite-youtube-embed
- Owner: mciszczon
- License: mit
- Created: 2020-11-14T09:38:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-14T17:26:12.000Z (about 4 years ago)
- Last Synced: 2024-04-19T00:23:34.471Z (7 months ago)
- Topics: kirby-cms, kirby-panel, kirby3, kirby3-plugin
- Language: Vue
- Homepage:
- Size: 87.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kirby Editor Block: Lite YouTube Embed
> Kirby Editor custom block to render `lite-youtube-embed` custom element based on
> [Paul Irish's custom HTML element](https://github.com/paulirish/lite-youtube-embed).## 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 [email protected]: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:
1. You might want to manually install the package and manually include its assets into your current
css and js assets;
2. 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:```php
= css('/media/plugins/mciszczon/kirby-editor-lite-youtube-embed/index.css') ?>
= js('/media/plugins/mciszczon/kirby-editor-lite-youtube-embed/index.js') ?>
```