承接 kosoukhov/yii2-ckeditor-youtube-plugin 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kosoukhov/yii2-ckeditor-youtube-plugin

最新稳定版本:1.0.0

Composer 安装命令:

composer require kosoukhov/yii2-ckeditor-youtube-plugin

包简介

Yii2 Youtube embed plugin for CKEditor based on Youtube embed (https://github.com/fonini/ckeditor-youtube-plugin/releases/tag/v2.1.18)

README 文档

README

Yii2 YouTube embed plugin (as widget) for CKEditor based on YouTube embed

Yii2 Latest Stable Version Total Downloads Latest Unstable Version License

Based on YouTube embed https://github.com/fonini/ckeditor-youtube-plugin/releases/tag/v2.1.18

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require kosoukhov/yii2-ckeditor-youtube-plugin "^1.0"

or add

"kosoukhov/yii2-ckeditor-youtube-plugin": "^1.0"

to the require section of your composer.json file.

Usage example:

Once the widget is installed, use it in your code.

You must specify in the plugin dependencies the set of editor Asset to which you connect the plugin.

If you are using the https://github.com/2amigos/yii2-ckeditor-widget then an example code like this:

class SetUp implements BootstrapInterface
{
    public function bootstrap($app)
    {
        $container = Yii::$container;

        $container->set(YoutubeEmbed::class, ['depends' => ['dosamigos\ckeditor\CKEditorWidgetAsset']]);

        $container->set(CKEditor::class, [
            'preset' => 'standart',
            'clientOptions' => [
                    'extraPlugins' => $container->get(YoutubeEmbed::class)::getPluginName()
                ]            
        ]);
    }
}

If you are using the https://github.com/MihailDev/yii2-ckeditor then an example code like this:

class SetUp implements BootstrapInterface
{
    public function bootstrap($app)
    {
        $container = Yii::$container;

        $container->set(YoutubeEmbed::class, ['depends' => ['mihaildev\ckeditor\Assets']]);

        $container->set(CKEditor::class, [
            'editorOptions' => [
                    'extraPlugins' => $container->get(YoutubeEmbed::class)::getPluginName()
                ]
        ]);
    }
}

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-13