定制 kosoukhov/yii2-ckeditor-youtube-plugin 二次开发

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

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

kosoukhov/yii2-ckeditor-youtube-plugin

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()
                ]
        ]);
    }
}

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固