2017 © Pedro Peláez
 

symfony-bundle tinymce-fastload-bundle

This Bundle integrates in TinyMCE WYSIWYG editor fast images upload

image

gwinn/tinymce-fastload-bundle

This Bundle integrates in TinyMCE WYSIWYG editor fast images upload

  • Wednesday, July 23, 2014
  • by gwinn
  • Repository
  • 1 Watchers
  • 1 Stars
  • 415 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

TinymceFastloadBundle

This bundle extends https://github.com/stfalcon/TinymceBundle so https://github.com/stfalcon/TinymceBundle/blob/master/README.md must be readed first, (*1)

Installation

Add bundle as a dependency to the composer.json of your application, (*2)

    "require": {
        ...
        "gwinn/tinymce-fastload-bundle": "dev-master"
        ...
    },

Add bundle to your application kernel.

// app/AppKernel.php
<?php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Gwinn\TinymceFastloadBundle\GwinnTinymceFastloadBundle(),
        );
    }

Configuration

config.yml

Similar to tinymce-bundle, just add to assetic & stfalcon_tinymce section in config.yml, (*3)

assetic:
    ...
    bundles:
        - GwinnTinymceFastloadBundle
    ...

stfalcon_tinymce:
    ...
    tinymce_buttons:
        image_uploader:
        title: "Upload Image"
        image: "asset[bundles/gwinntinymcefastload/images/upload.png]"
    ...
    theme:
        simple:
            toolbar: "... | image_uploader | ..."

parameters.yml

Add path to upload folder, (*4)

    tinymce-fastload-savepath: "%kernel.root_dir%/../web/files/"

routing.yml

Add bundle routes, (*5)

    tinymce_fastload_uploader:
        resource: "@GwinnTinymceFastloadBundle/Resources/config/routing.yml"
        prefix:   /

Include in template

{% extends '::base.html.twig' %}

{% block body %}


{{ tinymce_init() }} {% include 'GwinnTinymceFastloadBundle:Uploader:tinymce_file_uploader.html.twig' %} {% endblock %} {% block stylesheets %} {% stylesheets filter='cssrewrite' output='css/compiled/style.css' 'bundles/gwinntinymcefastload/css/*' %} <link rel="stylesheet" href="{{ asset_url }}" /> {% endstylesheets %} {% endblock %}

Copy resources to web folder

    php app/console assets:install web/

The Versions

23/07 2014

dev-master

9999999-dev

This Bundle integrates in TinyMCE WYSIWYG editor fast images upload

  Sources   Download

MIT

The Requires

 

tinymce editor wysiwyg