2017 © Pedro Peláez
 

sylius-bundle wysiwyg-editor-plugin

WYSIWYG editor for Sylius.

image

lead-ext/wysiwyg-editor-plugin

WYSIWYG editor for Sylius.

  • Wednesday, June 7, 2017
  • by kurakin-oleksandr
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Lead Ext WYSIWYG Editor plugin

WYSIWYG editor for Sylius., (*1)

By default plugin adds text editor for product's description and short description., (*2)

Usage:

  1. Install bundle:, (*3)

    $ composer.phar require lead-ext/wysiwyg-editor-plugin
    
  2. Add bundle to AppKernel.php:, (*4)

        new LeadExt\WysiwygEditorPlugin\LeadExtWysiwygEditorPlugin(),
    
  3. Configure bundle in app/config/config.yml:, (*5)

    lead_ext_wysiwyg_editor:
        api_key: 'your_api_key' #please read official web site for more information https://www.tinymce.com/
    
  4. Add init script for WYSIWYG editor on a page with desired options:, (*6)

    {{ wysiwyg_init({
        browser_spellcheck: true,
        branding: false,
        elementpath: false,
        statusbar: false,
        menubar: false,
        language: app.request.locale
    })}}
    

    Please check official documentation for all available options: https://www.tinymce.com/docs/, (*7)

  5. Use TextWysiwygType form type for your field:, (*8)

    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('text', TextWysiwygType::class, [
                'required' => false,
            ])
    }
    

Manual steps:

  • add raw filter for rendered fields. F.e. {{ product.shortDescription|raw }}

The Versions

07/06 2017

dev-master

9999999-dev http://lead-ext.com

WYSIWYG editor for Sylius.

  Sources   Download

MIT

The Requires

 

by Oleksandr Kurakin

sylius wysiwyg