hyperbolaa/ueditor

ueditor for symfony2

安装: 5

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

公开问题: 0

语言:JavaScript

类型:symfony-bundle

dev-master / 1.0.x-dev 2015-12-24 05:16 UTC

This package is not auto-updated.

Last update: 2024-09-18 18:40:16 UTC


README

Symfony2 中的 ueditor 生成支持。

安装

步骤 1: Composer

将以下 require 行添加到 composer.json 文件中

{
    "require": {
        "hyperbolaa/ueditor": "dev-master"
    }
}

然后使用 Composer 在项目中实际安装它

php composer.phar install

您也可以使用以下命令一步完成

$ php composer.phar require hyperbolaa/ueditor "dev-master"

步骤 2: 启用组件

在 kernel 中启用组件

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Hyperbolaa\Ueditor\HyperbolaaUeditorBundle(),
    );
}

步骤 3: 启用路由

将以下内容添加到您的路由配置 app/config/routing.yml

hyperbolaa_ueditor:
    resource: "@HyperbolaaUeditorBundle/Controller/"
    type:     annotation

配置

您可以在 app/config/config.yml 中配置一些选项。这些是默认值

hyperbolaa_ueditor:
    author: hyperbolaa
    find_best_mask: true
    find_from_random: false
    absolute_url: true

使用示例