【问题标题】:Unknown "ckeditor_widget" function未知的“ckeditor_widget”功能
【发布时间】:2016-06-09 21:00:09
【问题描述】:

用 composer 更新我的所有捆绑包后,我遇到了这个错误:

未知的“ckeditor_widget”函数。你的意思是“ckeditor_plugin”吗 第 58 行的“SonataFormatterBundle:Form:formatter.html.twig”?

我认为 SonataFormatterBundle 有问题

这是我的 composer.json

"require": { 
"php": ">=5.3.9", 
"symfony/symfony": "2.8.*",
"egeloen/ckeditor-bundle": "~2.2",
"sonata-project/formatter-bundle": "dev-master",
"sonata-project/page-bundle": "dev-master"

这是 "SonataFormatterBundle:Form:formatter.html.twig" 中的第 58 行:

{{ source_id }}_rich_instance = {{
                        ckeditor_widget(form.children[source_field].vars.id, ckeditor_configuration)
                    }};

知道如何解决这个问题吗?

【问题讨论】:

    标签: php symfony composer-php symfony-sonata sonata


    【解决方案1】:

    ckeditor-bundle 的 dev-master 版本似乎存在问题。所以我从“egeloen/ckeditor-bundle”:“dev-master”降级到“egeloen/ckeditor-bundle”:“3.0”,它工作得很好。

    【讨论】:

      猜你喜欢
      • 2017-12-17
      • 2020-11-14
      • 1970-01-01
      • 2011-07-28
      • 1970-01-01
      • 2014-11-13
      • 2021-09-24
      • 2012-12-14
      • 1970-01-01
      相关资源
      最近更新 更多