dev-master
9999999-dev http://lead-ext.comWYSIWYG editor for Sylius.
MIT
The Requires
- php ^7.1
- sylius/sylius dev-master
by Oleksandr Kurakin
sylius wysiwyg
WYSIWYG editor for Sylius.
WYSIWYG editor for Sylius., (*1)
By default plugin adds text editor for product's description and short description., (*2)
Install bundle:, (*3)
$ composer.phar require lead-ext/wysiwyg-editor-plugin
Add bundle to AppKernel.php
:, (*4)
new LeadExt\WysiwygEditorPlugin\LeadExtWysiwygEditorPlugin(),
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/
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)
Use TextWysiwygType
form type for your field:, (*8)
public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('text', TextWysiwygType::class, [ 'required' => false, ]) }
raw
filter for rendered fields. F.e. {{ product.shortDescription|raw }}
WYSIWYG editor for Sylius.
MIT
sylius wysiwyg