Integrating CKeditor to my symfony2 project

淺唱寂寞╮ 提交于 2019-12-04 03:06:28

I don't know what's going wrong with your form submission but I have created a bundle which allows you to integrate easily CKEditor in a Symfony2 project. The bundle is available here.

If you want to use an other wysiwyg editor, you can use TinyMCE which is available here.

If you are looking for some Symfony2 ressources, I recommend you to visit the Knp Bundles website which lists the available Symfony2 bundles.

Steve

Another Symfony2 Ckeditor bundle is the TrsteelCkeditorBundle.

jerome

First my textarea was empty, and after filled the ckeditor field or even without, the submit button didn't do anything.

So I had to to push the save button of the toolbar.

But then i did 'previous page' and came back to the same page but with the field hydrated with the content a just send and THERE the submit button works!!

So i just tried to put a default text in the textarea and now there is no more problem with the submit button.

I'm having this same problem but my current project prevents me from installing any bundles because I'm only integrating symfony 2 forms into a custom project. The reason behind the error is this:

CKEditor overrides the focus on the textarea which prevents sf2 validator to validate the form when you press Submit. The full error is similar with this one:

"An invalid form control with name='XXX[textarea_content]' is not focusable. "

I'm still searching for an elegant solution, my aim is to override CKEditor focus or fully remove it. Will get back to you once I have the solution.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!