2015-10-24 2 views
0

Я использую IvoryCKEditorBundle в проекте symfony без проблем.Symfony: FMElfinderBundle + IvoryCKEditorBundle. Пустая страница

Но я пытаюсь добавить FMElfinderBundle в IvoryCKEditorBundle. Я получаю пустую страницу с ошибками в консоли:

enter image description here

Мой код:

#app/config/config.yml 
# FMElfinderBundle Configuration 
fm_elfinder: 
    instances: 
     ckeditor: 
      locale: %locale% # defaults to current request locale 
      editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple 
      fullscreen: true # defaults true, applies to simple and ckeditor editors 
      theme: smoothness # jquery theme 
      include_assets: true # disable if you want to handle loading of the javascript and css assets yourself 
      connector: 
       debug: false # defaults to false 
       roots:  # at least one root must be defined 
        uploads: 
         show_hidden: false # defaults to false 
         driver: LocalFileSystem 
         path: uploads 
         upload_allow: ['image/png', 'image/jpg', 'image/jpeg'] 
         upload_deny: ['all'] 
         upload_max_size: 2M 

# IvoryCKEditorBundle Configuration 
ivory_ck_editor: 
    default_config: my_custom_config 
    configs: 
     my_custom_config: 
      toolbar:     full 
      filebrowserBrowseRoute:  elfinder 
      filebrowserBrowseRouteParameters: 
       instance: ckeditor 

Любая помощь ?? спасибо

ответ

0

Это моя конфигурация. Возможно, это помогает:

fm_elfinder: 
    instances: 
     default: 
      locale: %default_locale% # defaults to current request locale 
      editor: ckeditor # other options are tinymce, tinymce4, form, custom and simple 
      fullscreen: true # defaults true, applies to simple and ckeditor editors 
      theme: smoothness # jquery theme 
      include_assets: true # disable if you want to handle loading of the javascript and css assets yourself 
      connector: 
       debug: false # defaults to false 
       roots:  # at least one root must be defined 
        uploads: 
         show_hidden: false # defaults to false 
         driver: LocalFileSystem 
         path: uploads/content 
         upload_allow: ['image/png', 'image/jpg', 'image/jpeg'] 
         upload_deny: ['all'] 
         upload_max_size: 20M 

ivory_ck_editor: 
    configs: 
     my_config: 
      removePlugins: 'flash,print,forms,div,newpage' 
      allowedContent: true 
      entities: false 
      autoParagraph: false 
      protectedSource: ['/<span[^>]*><\/span>/g', '/<i[^>]*><\/i>/g'] 
0

Похоже, что активы elfinder не были должным образом сброшены, проверьте папку с данными в корневом каталоге. Также проверьте, что ваш файл-композитор содержит

{ 
    "config": { 
     "component-dir": "web/assets" 
    } 
} 

Эта часть сообщает установщику компонентов для копирования активов в каталоге web/assets.

Смежные вопросы