类型:' ckeditor'在EasyAdminBundle中不起作用

时间:2018-04-17 16:13:38

标签: ckeditor symfony-2.3 symfony2-easyadmin easyadmin

我遵循To Integrating IvoryCKEditorBundle in EasyAdminBundle上的指南,我使用的是Symfony 3.1.10版本和EasyAdminBundle 1.17.12 我穿上了AppKernel

new Ivory\CKEditorBundle\IvoryCKEditorBundle(), //CK Editor

就像在文档中说的那样

easy_admin:        
entities:         

    Genus:
        class: AppBundle\Entity\Genus
        label: Genuses
        help: Genuses are not covered under warranty!            
        form:
            fields:
                -
                    property: id
                    type_options: {disabled: true}
                - name
                - speciesCount
                - { property: funFact ,  type: ckeditor  }
                - isPublished
                - { property: 'firstDiscoveredAt', type_options: { widget: 'single_text' }}
                - { property: 'subFamily', type: 'easyadmin_autocomplete' }
                -                   
                    property: genusScientists
                    type: 'collection'
                    type_options:
                        entry_type: AppBundle\Form\GenusScientistEmbeddedForm
                        allow_delete: true
                        allow_add: true
                        by_reference: false 
                - { property: 'funFact', type: 'textarea' }

我将属性funFact配置为使用ckeditor但不起作用 image of the form with funFact without ckeditor on

在easyAdminBundle的web个人资料中

这个参数是texarea而不是ckeditor web profile 希望你的帮助我,谢谢。

1 个答案:

答案 0 :(得分:0)

我的错误我没有看到我再次放在最后

- { property: 'funFact', type: 'textarea' }

并替换属性heheh