Symfony 3 - CKEditor not correctly installed in PROD

懵懂的女人 提交于 2019-12-11 14:55:40

问题


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?

I've :

/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

I've

In CKEditorInstaller.php line 334:

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)


回答1:


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'


来源:https://stackoverflow.com/questions/56270227/symfony-3-ckeditor-not-correctly-installed-in-prod

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!