Skip to content

Issue with adding images to ckeditor #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antonioperic opened this issue May 26, 2015 · 13 comments
Closed

Issue with adding images to ckeditor #148

antonioperic opened this issue May 26, 2015 · 13 comments

Comments

@antonioperic
Copy link

Hi, to all...
I have problem, when I try to add images to ckeditor with double click on image inside elfinder nothing happens except that elfinder open image in popup (some kind of preview)

@helios-ag
Copy link
Owner

Hi @antonioperic, what ckeditor bundle do you use? Have you set ckeditor as editor under this bundle configuration?

@antonioperic
Copy link
Author

hi @helios-ag , here is my config:

ivory_ck_editor:
default_config: default
configs:
    default:
        filebrowserBrowseRoute: elfinder
        filebrowserBrowseRouteParameters:
            instance: ckeditor

fm_elfinder:
connector:
    roots:       # at least one root must be defined
        uploads:
            path: media/elfinder
            upload_allow: ['image/png', 'image/jpg', 'image/jpeg', 'application/pdf']
            upload_max_size: 15M

@helios-ag
Copy link
Owner

Can you post full elfinder configuration?
Btw it should be like this:

fm_elfinder:
  instances:
    default:
      locale: %locale%
      editor: ckeditor # other choices are tinymce or simple
      include_assets: true
      relative_path: true
      fullscreen: true
      connector:
          roots:       # at least one root must be defined
              uploads:
                  driver: LocalFileSystem
                  path: uploads

@antonioperic
Copy link
Author

@helios-ag that is my full confi.
I will try with yours

@helios-ag
Copy link
Owner

Please note that, my configuration node name is 'default', you can change it to 'ckeditor',
or you can use this configuration and omit name of the instance ('filebrowserBrowseRouteParameters: instance: ckeditor') in ivory configuration.

@antonioperic
Copy link
Author

@helios-ag instances is problem, cause I use older verison

    "egeloen/ckeditor-bundle":              "~2.0",
    "helios-ag/fm-elfinder-bundle":         "1.*",

regarding the issues with Sylius compatibility

@helios-ag
Copy link
Owner

Can you explain incompatibility issues you have with Sylius?
Is this issues related to ckeditor or elfinder?

@antonioperic
Copy link
Author

@helios-ag i think I cannot use lates version as Sylius uses Symfony 2.3

@helios-ag
Copy link
Owner

In this case you can use bundle version tagged under ~2.3 version

@antonioperic
Copy link
Author

@helios-ag trying at the moment. Will give you feedback soon

PS thnx for helping, appreciate that

@antonioperic
Copy link
Author

I have this now

ivory_ck_editor:
default_config: default
configs:
    default:
        filebrowserBrowseRoute: elfinder
        filebrowserBrowseRouteParameters:
            instance: ckeditor

fm_elfinder:
instances:
    default:
        locale: %sylius.locale%
        editor: ckeditor
        connector:
            roots:
                uploads:
                    driver: LocalFileSystem
                    path: uploads
                    upload_allow: ['image/png', 'image/jpg', 'image/jpeg', 'application/pdf']
                    upload_deny: ['all']
                    upload_max_size: 15M

and i got this error
ContextErrorException: Notice: Undefined index: ckeditor in /vagrant/vendor/helios-ag/fm-elfinder-bundle/Controller/ElFinderController.php line 25

@antonioperic
Copy link
Author

my instance is default in this case, stupid me :)

@antonioperic
Copy link
Author

thnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants