stinger/ckeditor-image2-bundle

Symfony2 Bundle 用于集成 CKEditor 插件 Image2

安装: 660

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 0

开放问题: 0

语言:JavaScript

类型:symfony-bundle

4.5.1 2015-07-10 08:32 UTC

This package is auto-updated.

Last update: 2024-09-07 07:12:47 UTC


README

Symfony2 Bundle 用于集成 CKEditor 插件 Image2

当前版本

Image2 v4.5.1

安装

将 bundle 添加到 composer.json 文件中

// composer.json

{
    "require": {
		// ...
        "stinger/ckeditor-image2-bundle": "~4.5.1"
    }
}

将 bundle 添加到应用内核

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Stinger\CKEditorImage2Bundle\StingerCKEditorImage2Bundle(),
        // ...
    );
}

使用 Composer 下载 bundle

$ php composer.phar update stinger/ckeditor-image2-bundle

安装资源

假设您的服务器公共目录名为 "web",安装公共供应商资源

$ php app/console assets:install web

可选,使用 --symlink 属性创建链接而不是资源的副本

$ php app/console assets:install --symlink web

使用方法

trsteel_ckeditor:
    external_plugins:
      image2:
        path: 'bundles/stingerckeditorimage2'

许可证

请参考包含文件的源代码以获取许可证信息

参考

  1. https://ckeditor.npmjs.net.cn/addon/image2
  2. https://symfony.com.cn