FriendsOfSymfony / FOSCKEditorBundle

Provides a CKEditor integration for your Symfony project.
Other
522 stars 84 forks source link

Loading Form dynamically leads to a problem #193

Closed markus-fischbacher closed 5 years ago

markus-fischbacher commented 5 years ago

I'm loading a form with CKEditor form types dynamically using Ajax. The form is rendered using $this->renderView and set with theElement.html(renderedView) to show it in a DIV. The first time posting the form does not transmit values to the controller. The second time rendering the form shows following warning in the console: [CKEDITOR] Error code: editor-destroy-iframe. Submitting the form is sending the value to the controller. It then works each time I submit the form. After refreshing the page doing a page reload, it's behaving like the first attempt. Any ideas what happens or how I can fix that?

Thanks in advance! Markus

markus-fischbacher commented 5 years ago

Found a fix by myself. It's only a configuration topic.

fos_ck_editor: input_sync: true