https://github.com/johncms/ckeditor-media-embed
The library replaces the semantic output of the CKEditor 5 with the html code of the content preview.
https://github.com/johncms/ckeditor-media-embed
ckeditor5 embed media php php-library youtube
Last synced: about 1 year ago
JSON representation
The library replaces the semantic output of the CKEditor 5 with the html code of the content preview.
- Host: GitHub
- URL: https://github.com/johncms/ckeditor-media-embed
- Owner: johncms
- License: mit
- Created: 2021-03-28T11:33:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T10:55:40.000Z (over 2 years ago)
- Last Synced: 2025-03-25T08:51:19.631Z (about 1 year ago)
- Topics: ckeditor5, embed, media, php, php-library, youtube
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `johncms/ckeditor-media-embed`
[](https://github.com/johncms/ckeditor-media-embed/actions)
[](https://packagist.org/packages/johncms/ckeditor-media-embed)
[](https://github.com/johncms/ckeditor-media-embed)
[](https://github.com/johncms/ckeditor-media-embed/releases)
[](https://packagist.org/packages/johncms/ckeditor-media-embed)
The library replaces the semantic output of the CKEditor 5 with the html code of the content preview.
## Installation
The preferred method of installation is via [Composer](http://getcomposer.org). Run the following command to install the package and add it as a requirement to your project's
`composer.json`:
```bash
composer require johncms/ckeditor-media-embed
```
## Example
```PHP
$providers = [
new \Simba77\EmbedMedia\Providers\Youtube(
[
'classes' => 'embed-responsive embed-responsive-16by9',
'styles' => [
'max-width' => '100%',
'width' => '100%',
],
]
),
];
$embed = new \Simba77\EmbedMedia\Embed($providers);
$html = '';
echo $embed->embedMedia($html);
```
## License
The `simba77/ckeditor-media-embed` library is licensed for use under the MIT License (MIT).
Please see [LICENSE](https://github.com/johncms/ckeditor-media-embed/blob/master/LICENSE) for more information.