2017 © Pedro PelĂĄez
 

symfony-bundle trumbowyg-bundle

Provides a Trumbowyg integration for you Symfony project

image

alexdw/trumbowyg-bundle

Provides a Trumbowyg integration for you Symfony project

  • Monday, May 7, 2018
  • by alexdw
  • Repository
  • 1 Watchers
  • 4 Stars
  • 4,173 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

TrumbowygBundle

This bundle provide an easy integration for Trumbowyg Editor in your Symfony Project., (*1)

SensioLabsInsight, (*2)

Installation

 php composer.phar require alexdw/trumbowyg-bundle="0.9"

Add trumbowygbundle to your application kernel.

// app/AppKernel.php
<?php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Alexdw\TrumbowygBundle\AlexdwTrumbowygBundle(),
        );
    }

Install bundle assets

$ php app/console assets:install web/

Include in template

This bundle comes with an extension for Twig to makes it very easy to include the assets in your pages., (*3)

Include javascripts

    {{ trumbowyg_js() }}

You can also override the default configuration by passing an option like this:, (*4)

    {{ trumbowyg_js({'include_jquery': false}) }}

Include stylesheets

    {{ trumbowyg_css() }}

Usage

// Symfony 2.7 and previous versions
$builder->add('field', 'trumbowyg', array(
        'reset_css' => true,
        //...
));

// Symfony 2.8 and newer versions
use Alexdw\TrumbowygBundle\Form\Type\TrumbowygType;

$builder->add('field', TrumbowygType::class, array(
    'reset_css' => true,
            //...
));

Default configuration

    alexdw_trumbowyg:
      base_path: /bundles/alexdwtrumbowyg/
      svg_path: /bundles/alexdwtrumbowyg/ui/icons.svg
      language: en
      autogrow: false
      reset_css: false
      semantic: false
      remove_format_pasted: false
      include_jquery: true
      jquery_path: /bundles/alexdwtrumbowyg/vendor/jquery-3.2.1.min.js
      btns:
        - ["viewHTML"]
        - ["formatting"]
        - "btnGrp-semantic"
        - ["superscript","subscript"]
        - ["link"]
        - ["insertImage"]
        - "btnGrp-justify"
        - "btnGrp-lists"
        - ["horizontalRule"]
        - ["removeformat"]
        - ["fullscreen"]

All parameters explained here, (*5)

The Versions

07/05 2018

dev-master

9999999-dev

Provides a Trumbowyg integration for you Symfony project

  Sources   Download

MIT

The Requires

 

editor wysiwyg trumbowyg

25/11 2016

0.9.3

0.9.3.0

Provides a Trumbowyg integration for you Symfony project

  Sources   Download

MIT

The Requires

 

editor wysiwyg trumbowyg

17/10 2016

0.9.2-ALPHA

0.9.2.0-alpha

Provides a Trumbowyg integration for you Symfony project

  Sources   Download

MIT

The Requires

 

editor wysiwyg trumbowyg

17/10 2016

0.9.1-ALPHA

0.9.1.0-alpha

Provides a Trumbowyg integration for you Symfony project

  Sources   Download

MIT

The Requires

 

editor wysiwyg trumbowyg

08/07 2016

0.9.0

0.9.0.0

Provides a Trumbowyg integration for you Symfony project

  Sources   Download

MIT

The Requires

 

editor wysiwyg trumbowyg