Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.45 KB

wysiwyg.md

File metadata and controls

38 lines (25 loc) · 1.45 KB

WYSIWYG editor

This plugin comes with a default FOSCKEditorBundle integration. It has also been customized to use image upload feature. Every time you upload an image in the CKEditor, a new image media is being created.

General usage

You can use a custom WysiwygType any place you want the CKEditor to appear in. Take the BlockTranslationType as an example.

Note: In the WYSIWYG fields, you can use Twig function nesting. Read more here.

Configuration

If you want to customize any behavior of the CKEditor, you have to override one of these files: CKEditor config or CKEditor js config

Useful links:

Note: Remember to add your js configuration to config/packages/twig.yaml file:**

# Symfony 2/3: app/config/config.yml
# Symfony 4: config/packages/twig.yaml

twig:
    form_themes:
        - 'path to your configuration'

Extras

Some problems explained and solved in this issue