FriendsOfSymfony / FOSCKEditorBundle

Provides a CKEditor integration for your Symfony project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading Form dynamically leads to a problem

markus-fischbacher opened this issue · comments

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

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

fos_ck_editor:
input_sync: true