froala / KMSFroalaEditorBundle

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

Dependency Injection not working for the FormType (Symfony 4) #50

Closed IndyDevGuy closed 4 years ago

IndyDevGuy commented 6 years ago

When trying to add this type as a field to my form it says that o arguments were passed and the constructor was expecting 4 in FroalaEditorType class. My Symfony version is 4. What are the exact steps to set this up with Symfony 4? Thanks for your time.

sguionni commented 6 years ago

Can you show some code ?

The folloing code is running on my Sf4 fresh install. $data = array(); $form = $this->createFormBuilder( $data )->add( 'editor', FroalaEditorType::class, array( "language" => "fr", ) )->getForm();

IndyDevGuy commented 4 years ago

Sorry form my long delay in response, I have since sorted this out (misunderstanding on my end).