dev-master
9999999-devThis Bundle integrates in TinyMCE WYSIWYG editor fast images upload
MIT
The Requires
- php >=5.3.0
- symfony/symfony >=2.1
- stfalcon/tinymce-bundle 0.3.*
by Alex Lushpai
tinymce editor wysiwyg
This Bundle integrates in TinyMCE WYSIWYG editor fast images upload
This bundle extends https://github.com/stfalcon/TinymceBundle so https://github.com/stfalcon/TinymceBundle/blob/master/README.md must be readed first, (*1)
Add bundle as a dependency to the composer.json of your application, (*2)
"require": { ... "gwinn/tinymce-fastload-bundle": "dev-master" ... },
// app/AppKernel.php <?php // ... public function registerBundles() { $bundles = array( ... new Gwinn\TinymceFastloadBundle\GwinnTinymceFastloadBundle(), ); }
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 | ..."
Add path to upload folder, (*4)
tinymce-fastload-savepath: "%kernel.root_dir%/../web/files/"
Add bundle routes, (*5)
tinymce_fastload_uploader: resource: "@GwinnTinymceFastloadBundle/Resources/config/routing.yml" prefix: /
{% 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 %}
php app/console assets:install web/
This Bundle integrates in TinyMCE WYSIWYG editor fast images upload
MIT
tinymce editor wysiwyg