定制 simba77/ckeditor-media-embed 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simba77/ckeditor-media-embed

最新稳定版本:2.0

Composer 安装命令:

composer require simba77/ckeditor-media-embed

包简介

The library replaces the semantic output of the CKEditor 5 with the html code of the content preview

README 文档

README

PHP-CI Packagist Source Code GitHub tag (latest SemVer) Packagist

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. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require johncms/ckeditor-media-embed

Example

$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 = '<figure class="media"><oembed url="https://youtu.be/8ZLSKEmbt0Y?t=75"></oembed></figure>';

echo $embed->embedMedia($html);

License

The simba77/ckeditor-media-embed library is licensed for use under the MIT License (MIT).
Please see LICENSE for more information.

统计信息

  • 总下载量: 530
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-28