在Symfony5中安装CKeditor5

问题描述

我想为symfony5安装ckeditor5

composer require friendsofsymfony/ckeditor-bundle

PHP bin/console ckeditor:install

这给了我CKeditor4 ...

是否可以使用ckeditor5,如果可能的话,可以使用在线生成器CKEditor生成自定义版本,就像CKedtor4一样...

谢谢:)。

解决方法

是的,你可以做到。

https://symfony.com/doc/1.0/bundles/FOSCKEditorBundle/usage/ckeditor.html#ckeditor-version

所以不要运行:

php bin/console ckeditor:install

您的工作:

$ php bin/console ckeditor:install --tag=

因此,您可以在标签中定义所需的版本。

您可能想尝试一下ckeditor官方仓库中可用的标签,以获取所需标签。

https://github.com/ckeditor/ckeditor5/tags