froala / KMSFroalaEditorBundle

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

Possibility to define profiles (i.e. to define and use different froa… #45

Closed martinopic closed 6 years ago

martinopic commented 6 years ago

Added a new configuration option "profiles" to define different configuration profiles for Froala (see @ #42 ).

I decided not to add this option as a "normal" neither "custom" option as it generates froala configuration subtrees that must also be validated., this added some complexity.

There is now also a new FroalaEditorType option defined which is "profile" through which one can specify the profile to use for the type. If the profile is not found amongst existing ones an exception is thrown.

The new configuration option does not break current configuration as requested, profiles just override "default" configurations.

sguionni commented 6 years ago

Thanks !