Symfony 3-CKEditor未正确安装在PROD中 [英] Symfony 3 - CKEditor not correctly installed in PROD

查看:101
本文介绍了Symfony 3-CKEditor未正确安装在PROD中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

on my site, I have the CKEditor bundle installed. It worked in PREPROD. But by switching to PROD, CKEditor does not work anymore. It is installed however, can someone please help me?

我有:

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

但是没有任何效果. 如果我尝试这个:

But nothing is working. And if i try this :

php bin/console ckeditor:install

php bin/console ckeditor:install

在CKEditorInstaller.php第334行:

In CKEditorInstaller.php line 334:

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

Unable to download CKEditor ZIP archive from "https://github.com/ckeditor/ckeditor-releases/archive/full/latest.zip". (file_get_contents(https://github.com/ckeditor/ckeditor-releases/archive/full/latest.zip): failed to open s tream: Connection timed out)

推荐答案

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

if you have all the files and you are using fos ckeditor, please check that you have this code under 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'

这篇关于Symfony 3-CKEditor未正确安装在PROD中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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