SourceRank

Documentation

KMSFroalaEditorBundle

Symfony 3 & 4 update

This bundle is now compatible with Symfony 2, 3 and 4 on the same branch (dev-master).

Migration to Froala Editor v2

Froala released a new version of its editor, this update is the opportunity to redo the major part of this bundle.
To migrate from v1 to v2, you have to update your configuration file. Then, read display editor content chapter. Just follow instructions bellow, it's easier and faster than before.

Step 3 : Import routes

Step 4 : Install the bundle

$ composer update

Step 5 : Configure the bundle

Required

Firstly, you have to select your language, other settings are optionals (see below).

// app/config.ymlkms_froala_editor:
language: "nl"

Optionals

All Froala options (list provided here) are supported.
Just add the option name with your value.
If you want to keep the Froala default value, don't provide anything in your config file.
For options wich require an array, provide an value array.
For options wich require an object, provide an key/value array.