froala / KMSFroalaEditorBundle

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

Events handling #43

Closed martinopic closed 6 years ago

martinopic commented 6 years ago

Currently there is no way to handle events, it would be nice to have an additional options for the type:

$builder->add( "yourField", FroalaEditorType::class , 
    array('froalaEvents' => array('eventName' => 'functionName'))

I've already implemented this on an extension I made for a project but I think it would made a nice addition to the bundle, if you are interested I'd make a pull request.

sguionni commented 6 years ago

You're right it's a good idea. I can merge your PR or add this in the next update.