froala / KMSFroalaEditorBundle

Symfony bundle for Froala WYSIWYG HTML Rich Text Editor.
https://froala.com/wysiwyg-editor
105 stars 33 forks source link

Profiles #42

Closed martinopic closed 6 years ago

martinopic commented 6 years ago

It would be useful to have the possibility to manage different configuration profiles and then using them by specifying a "profile" option on the Type.

something like:

kms_froala_editor:
    profiles:
        profile1:
            tableColors: [ "#FFFFFF", "#FF0000" ]
        profile2:
            tableColors: [ "#FFFF00", "#FF0000" ]

and then applying it with

$builder->add( "yourField", FroalaEditorType::class , array('profile' => 'profile1');

If you agree with the feature I could provide a pull request for the implementation.

sguionni commented 6 years ago

I think it's a good idea. But it will be better without breaking actual configuration. If you have a PR i can merge.