Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Trumbowyg Bundle Laravel Package

alexdw/trumbowyg-bundle

View on GitHub
Deep Wiki
Context7

TrumbowygBundle

This bundle provide an easy integration for Trumbowyg Editor in your Symfony Project.

SensioLabsInsight

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.

Include javascripts

    {{ trumbowyg_js() }}

You can also override the default configuration by passing an option like this:

    {{ 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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk