Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 359 | All time: 6,922 This week: 87 |
Version | License | PHP version | Categories | |||
tinymce-fastload 1.0.0 | MIT/X Consortium ... | 5.3.0 | PHP 5, Graphics, Files and Folders, C... |
Description | Author | |
This package can upload images to be displayed in WYSIWYG editor. |
This bundle extends https://github.com/stfalcon/TinymceBundle so https://github.com/stfalcon/TinymceBundle/blob/master/README.md must be readed first
Add bundle as a dependency to the composer.json of your application
"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
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
tinymce-fastload-savepath: "%kernel.root_dir%/../web/files/"
Add bundle routes
tinymce_fastload_uploader:
resource: "@GwinnTinymceFastloadBundle/Resources/config/routing.yml"
prefix: /
{% extends '::base.html.twig' %}
{% block body %}
<form action="path('lab_basic_homepage')" method="post">
<div>
<textarea class="tinymce" name="simple-text"></textarea>
</div>
</form>
{{ 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/
Files (13) |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
DependencyInjection (2 files) | ||||
Resources (4 directories) | ||||
composer.json | Data | Auxiliary data | ||
GwinnTinymceFastloadBundle.php | Class | Class source | ||
README.md | Doc. | Documentation |
Files (13) | / | DependencyInjection |
File | Role | Description |
---|---|---|
Configuration.php | Class | Class source |
GwinnTinymceFastloadExtension.php | Class | Class source |
Files (13) | / | Resources |
File | Role | Description | ||
---|---|---|---|---|
config (2 files) | ||||
public (3 directories) | ||||
translations (1 file) | ||||
views (1 directory) |
Files (13) | / | Resources | / | config |
File | Role | Description |
---|---|---|
routing.yml | Data | Auxiliary data |
services.yml | Data | Auxiliary data |
Files (13) | / | Resources | / | public | / | css |
File | Role | Description |
---|---|---|
tinymce-fastload.css | Data | Auxiliary data |
Files (13) | / | Resources | / | views | / | Uploader |
File | Role | Description |
---|---|---|
tinymce_file_uploader.html.twig | Data | Auxiliary data |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.