【问题标题】:Symfony 3 - CKEditor not correctly installed in PRODSymfony 3 - CKEditor 未正确安装在 PROD 中
【发布时间】:2019-10-09 17:36:06
【问题描述】:

在我的网站上,我安装了 CKEditor 包。它在 PREPROD 中工作。但是通过切换到 PROD,CKEditor 不再工作。但是它已安装,有人可以帮助我吗?

我已经:

/web/ckeditor
/web/bundle/pages/ckeditor
/src/Site/PagesBundle/Resources/Public/ckeditor

但没有任何效果。 如果我试试这个:

php bin/console ckeditor:install

我已经

在 CKEditorInstaller.php 第 334 行:

无法从“https://github.com/ckeditor/ckeditor-releases/archive/full/latest.zip”下载 CKEditor ZIP 存档。 (file_get_contents(https://github.com/ckeditor/ckeditor-releases/archive/full/latest.zip): 打开s失败 trem:连接超时)

【问题讨论】:

标签: php symfony ckeditor installation assets


【解决方案1】:

如果您拥有所有文件并且正在使用 fos ckeditor,请检查您在 twig.form_themes 下是否有此代码:

# Symfony 2/3: app/config/config.yml
# Symfony 4: config/packages/twig.yaml

twig:
    form_themes:
         - '@FOSCKEditor/Form/ckeditor_widget.html.twig'

【讨论】:

    猜你喜欢
    • 2016-12-25
    • 2019-10-08
    • 2016-09-04
    • 1970-01-01
    • 2018-10-25
    • 2023-03-24
    • 1970-01-01
    • 2016-07-21
    • 2021-05-30
    相关资源
    最近更新 更多