hyperbolaa/ueditor

ueditor for symfony2

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

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

This package is not auto-updated.

Last update: 2024-11-13 19:25:18 UTC


README

The ueditor generation support in Symfony2.

Installation

Step 1: Composer

Add the following require line to the composer.json file:

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

And actually install it in your project using Composer:

php composer.phar install

You can also do this in one step with this command:

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

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

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

Step 3: Enable the route

Add this to your routing configuration in app/config/routing.yml:

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

Configuration

You can configure some options in app/config/config.yml. Those are the default values:

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

Usage examples