sonata_formatter.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #
  2. # more information can be found here http://sonata-project.org/bundles/formatter
  3. #
  4. sonata_formatter:
  5. formatters:
  6. markdown:
  7. service: sonata.formatter.text.markdown
  8. extensions:
  9. - sonata.formatter.twig.control_flow
  10. - sonata.formatter.twig.gist
  11. - sonata.media.formatter.twig
  12. text:
  13. service: sonata.formatter.text.text
  14. extensions:
  15. - sonata.formatter.twig.control_flow
  16. - sonata.formatter.twig.gist
  17. - sonata.media.formatter.twig
  18. rawhtml:
  19. service: sonata.formatter.text.raw
  20. extensions:
  21. - sonata.formatter.twig.control_flow
  22. - sonata.formatter.twig.gist
  23. - sonata.media.formatter.twig
  24. richhtml:
  25. service: sonata.formatter.text.raw
  26. extensions:
  27. - sonata.formatter.twig.control_flow
  28. - sonata.formatter.twig.gist
  29. - sonata.media.formatter.twig
  30. ckeditor:
  31. templates:
  32. browser: 'SonataFormatterBundle:Ckeditor:browser.html.twig'
  33. upload: 'SonataFormatterBundle:Ckeditor:upload.html.twig'
  34. # This section can be used to include the SonataMediaBundle with CKEDITOR
  35. # => http://sonata-project.org/bundles/media/master/doc/reference/extra.html#ckeditor-integration
  36. # there is also a configuration in the sonata_formatter section (see sonata_formatter.yml)
  37. ivory_ck_editor:
  38. autoload: false
  39. base_path: "bundles/ivoryckeditor"
  40. js_path: "bundles/ivoryckeditor/ckeditor.js"
  41. default_config: default
  42. configs:
  43. default:
  44. filebrowserBrowseRoute: admin_sonata_media_media_ckeditor_browser
  45. filebrowserImageBrowseRoute: admin_sonata_media_media_ckeditor_browser
  46. # Display images by default when clicking the image dialog browse button
  47. filebrowserImageBrowseRouteParameters:
  48. provider: sonata.media.provider.image
  49. filebrowserUploadRoute: admin_sonata_media_media_ckeditor_upload
  50. filebrowserUploadRouteParameters:
  51. provider: sonata.media.provider.file
  52. # Upload file as image when sending a file from the image dialog
  53. filebrowserImageUploadRoute: admin_sonata_media_media_ckeditor_upload
  54. filebrowserImageUploadRouteParameters:
  55. provider: sonata.media.provider.image
  56. context: default # Optional, to upload in a custom context
  57. news:
  58. filebrowserBrowseRoute: admin_sonata_media_media_ckeditor_browser
  59. filebrowserImageBrowseRoute: admin_sonata_media_media_ckeditor_browser
  60. # Display images by default when clicking the image dialog browse button
  61. filebrowserImageBrowseRouteParameters:
  62. provider: sonata.media.provider.image
  63. filebrowserUploadRoute: admin_sonata_media_media_ckeditor_upload
  64. filebrowserUploadRouteParameters:
  65. provider: sonata.media.provider.file
  66. # Upload file as image when sending a file from the image dialog
  67. filebrowserImageUploadRoute: admin_sonata_media_media_ckeditor_upload
  68. filebrowserImageUploadRouteParameters:
  69. provider: sonata.media.provider.image
  70. context: news # Optional, to upload in a custom context