Symfony2:如何使用&x27;ckeditor';以某种形式?

Symfony2:如何使用&x27;ckeditor';以某种形式?,symfony,ckeditor,bundle,Symfony,Ckeditor,Bundle,我安装了TRsteelCkeditorBundle,当我在视图中手动构建表单时,它可以工作 <form method="post"> <p> My Editor:<br> <textarea name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea> <

我安装了TRsteelCkeditorBundle,当我在视图中手动构建表单时,它可以工作

 <form method="post">
        <p>
            My Editor:<br>
            <textarea name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
            <script>
                CKEDITOR.replace( 'editor1' );
            </script>
        </p>
        <p>
            <input type="submit">
        </p>
    </form>
我的代码: 在细枝模板中 {{form_widget(form)} ligne8是form_小部件

在控制器中:

  public function indexAction()
  {
  $formBuilder = $this->createFormBuilder();

  $formBuilder
    ->add('date',        'date')
    ->add('title',       'text')
    ->add('content',     'ckeditor')
    ->add('author',      'text');

  $form = $formBuilder->getForm();
  $view['form'] = $form -> CreateView();

  return $this->render('lbTestBundle:Default:index.html.twig', $view);
  }

我一步一步地遵循github页面上Read_me.txt的指示,试图在别处找到答案,但什么也没找到。如果有人能帮我解决这个问题,我还是SF2的初学者。谢谢

第8行的lbTestBundle:Default:index.html.twig是什么

显然,模板中有一个route
route\u name
,但routing.yml文件中没有定义


这就是所有的错误信息。

这里也有同样的问题。今天花一整天的时间研究。
最后,通过将TRsteelCkeditor包替换为IvoryCKEditor包来修复它。

我找到了错误的来源。 路由名称来自

 #config.yml for TrsteelCkeditor
  filebrowser_image_browse_url:
      route: route_name
      route_parameters:
          type: image
我想,当你想在编辑器中上传图像时,我必须把编辑器的路径放在哪里。
我将继续测试这个budle,直到我得到了一些好的结果,我将给出结果,并在评论行中添加注释

#route: route_name
在config.yml中解决问题,这一行用于在服务器上上载图像,我想,请参见以下链接:

但是现在我在语言方面遇到了一些问题,我想用法语说,现在皮肤似乎依赖于语言,就像按钮上的鼠标悬停一样


另外,如果您想配置它,您可以在config.yml或/web/bundle存储库中的config.js(如果您已经安装了资产)中进行配置

您好,
{{form_widget(form)}}
是第8行,当我在表单生成器
->add('content','ckeditor')
中添加ckeditor字段时出现错误。最后,它不是来自routing.ymlBut它是一个路由问题。谢谢,今晚我将检查它并查看差异。
#route: route_name