# Youtube embed plugin
Simple plugin for creating a Youtube embed.

## Initialize

**Import the plugin**
```javascript
import Youtube from 'ckeditor5-youtube-embed/youtube'
```

**Include the plugin**
```javascript
Editor.builtinPlugins = [
	Youtube
]
```

**Add the button to the toolbar**
```javascript
Editor.defaultConfig = {
	toolbar: {
		items: [
			'youtube'
		]
	}
}
```

## Usage

- Click on the `Youtube embed` button in the toolbar
- Enter the Youtube URL in the prompt
- The element is created

## Structure

The plugin will add the element as shown below

```html
<div class="youtube-embed">
	<iframe src="https://www.youtube.com/embed/id"></iframe>
</div>
```
