将CKeditor集成到我的symfony2项目中 [英] Integrating CKeditor to my symfony2 project

查看:109
本文介绍了将CKeditor集成到我的symfony2项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图集成ckeditor到我的symfony2项目,以便一些textarea将有ckeditor html编辑器。我通过调用我的窗体中的class =ckeditor将ckeditor带到我需要的文本区域。我现在面临的问题是,当我使用ckeditor的提交按钮,我的窗体不会工作,我将不得不使用内置的保存选项的ckeditor工具栏提交窗体。当我从textareas删除ckeditor和使用正常textarea提交按钮似乎工作。

I was trying to integrate ckeditor to my symfony2 project so that some of the textarea will have the ckeditor html editor. I brought the ckeditor on my required textarea by calling the class="ckeditor" in my form. The issue that I am facing now is that when I use the ckeditor the submit button of my form will not work instead I will have to use the built in "Save" option of the ckeditor toolbar for submitting the form. When I remove the ckeditor from the textareas and use normal textarea the submit button seems to work.

我不想使用ckeditor工具栏上的保存按钮提交我的表单。是否有一个解决方法使提交按钮工作?试着搜索可能的解决方案,但没有找到任何。

I do not want to use the "Save" button on the ckeditor toolbar to submit my form. Is there a workaround to make the submit button work? Tried googling out for possible solutions but could not find any.

PS:我还想知道是否还有其他html文本编辑器像ckeditor,可以很好地与symfony2一起工作,并链接到实现指令。

P.S: I would also like to know if there are other html text editors like ckeditor that would work well with symfony2 and link to implementation instructions.

推荐答案

我不知道你的表单提交有什么问题,但我创建了一个捆绑,允许你轻松地集成到一个Symfony2项目CKEditor。该捆绑包可从此处获得。

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.

如果要使用其他wysiwyg编辑器中,您可以使用TinyMCE,此网址此处

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

如果您正在寻找一些Symfony2资源,我建议您访问 Knp Bundles网站,其中列出了可用的Symfony2包。

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

这篇关于将CKeditor集成到我的symfony2项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆