trsteel88 / TrsteelCkeditorBundle

Symfony2 bundle for easy integration of the CKEditor WYSIWYG
97 stars 58 forks source link

problems with setting up a filebrowser_browse_url variables #28

Closed bartoszrychlicki closed 11 years ago

bartoszrychlicki commented 11 years ago

Hey there,

I've tried to setup CKfinder but I can't setup config variables for filebrowser_browse_url. They are not pass anywhere to CkEditor instance. In my settings file I've got:

trsteel_ckeditor:
  toolbar: ['document', 'clipboard', 'editing', '/', 'basicstyles', 'links', '/', 'insert', 'styles', 'tools']
  filebrowser_image_browse_url:
          url: /bundles/wenigergms/ckfinder/ckfinder.html?type=image
  filebrowser_browse_url:
          url: /bundles/wenigergms/ckfinder/ckfinder.html?type=file

the url's are correct, but output in template is

<script type="text/javascript" src="/bundles/trsteelckeditor/ckeditor.js"></script><script type="text/javascript">
                            CKEDITOR.replace("s50eaf1136f1c8_body",{
                                                                            startupOutlineBlocks: 1,

                                                                                                                                                                        toolbar: [{"name":"document","items":["Source","-","Save","-","Templates"]},{"name":"clipboard","items":["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{"name":"editing","items":["Find","Replace","-","SelectAll"]},"\/",{"name":"basicstyles","items":["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{"name":"links","items":["Link","Unlink","Anchor"]},"\/",{"name":"insert","items":["Image","Flash","Table","HorizontalRule"]},{"name":"styles","items":["Styles","Format"]},{"name":"tools","items":["Maximize","ShowBlocks"]}]
        });
        </script>

And of course the "browse" button don't appear in CkEditor "Image" panel.

Thanks for any assistance.

trsteel88 commented 11 years ago

Fixed with https://github.com/trsteel88/TrsteelCkeditorBundle/pull/29