【发布时间】:2020-06-29 21:11:21
【问题描述】:
这是我的堆栈:
- Symfony4
- EasyAdmin
- 网页包
- FOSCkEditor
- CKFinder
这是我的问题:
我有一个带有所见即所得字段的表单,当我单击“图像”图标时,会打开一个包含图像所有属性(大小、alt、边框、链接等)的弹出窗口。 当我安装 Symfony 包“ckfinder”时,现在有一个新按钮“Browser”。
当我点击按钮时,会打开一个新窗口,调用此 URL:
/bundles/cksourceckfinder/ckfinder/ckfinder.html?CKEditor=article_content&CKEditorFuncNum=1&langCode=fr
这是我得到的错误:
No route found for "GET /bundles/cksourceckfinder/ckfinder/core/connector/php/connector.php" (from "http://192.168.2.1:8000/bundles/cksourceckfinder/ckfinder/ckfinder.html?CKEditor=article_content&CKEditorFuncNum=1&langCode=fr")
我遵循了文档,但我认为我错过了一些东西。
我的代码中没有文件名connector.php,我应该创建它吗?
这是我对 fosckeditor 的配置:
twig:
form_themes:
- '@FOSCKEditor/Form/ckeditor_widget.html.twig'
fos_ck_editor:
default_config: default
configs:
default:
toolbar: full
fullscreen: true
还有ckfinder的配置:
ckfinder:
connector:
authenticationClass: App\CustomCKFinderAuth\CustomCKFinderAuth
我需要创建路线吗?新模板?我被卡住了。
如果你知道如何处理这个问题,请帮助我!
谢谢,保重。
【问题讨论】:
标签: php ckeditor symfony4 ckfinder easyadmin