{"action":"created","issue":{"url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/140","labels_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/140/comments","events_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/140/events","html_url":"https://github.com/helios-ag/FMElfinderBundle/issues/140","id":69519077,"number":140,"title":"Elfinder Form Type","user":{"login":"xorgxx","id":7679725,"avatar_url":"https://avatars.githubusercontent.com/u/7679725?v=3","gravatar_id":"","url":"https://api.github.com/users/xorgxx","html_url":"https://github.com/xorgxx","followers_url":"https://api.github.com/users/xorgxx/followers","following_url":"https://api.github.com/users/xorgxx/following{/other_user}","gists_url":"https://api.github.com/users/xorgxx/gists{/gist_id}","starred_url":"https://api.github.com/users/xorgxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorgxx/subscriptions","organizations_url":"https://api.github.com/users/xorgxx/orgs","repos_url":"https://api.github.com/users/xorgxx/repos","events_url":"https://api.github.com/users/xorgxx/events{/privacy}","received_events_url":"https://api.github.com/users/xorgxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-20T06:35:24Z","updated_at":"2015-04-21T06:20:06Z","closed_at":null,"body":"hi\r\n\r\ni try to add Elfinder Form Type this is my config : \r\n\r\n```\r\n form:\r\n            locale: %locale% # defaults to current request locale\r\n            editor: form # other choices are tinymce or simple, and form\r\n#            showhidden: false # defaults to false\r\n            fullscreen: true # defaults true, applies to simple and ckeditor editors\r\n            include_assets: true # disable if you want to handle loading of the javascript and css assets yourself\r\n            connector:\r\n                debug: false # defaults to false\r\n                roots:       # at least one root must be defined\r\n                    uploads1:\r\n                        driver: LocalFileSystem\r\n                        path: bundles/neocore/images\r\n                        upload_allow: ['image/png', 'image/jpg', 'image/jpeg']\r\n                        upload_deny: ['all']\r\n                        upload_max_size: 2M\r\n```\r\nhere declaration in my form type : \r\n```\r\n   public function buildForm ( FormBuilderInterface $builder , array $options )\r\n    {\r\n        $builder\r\n            ->add ( 'title' )\r\n            ->add ( 'subtitle' )\r\n            ->add ( 'Norder' )\r\n            ->add ( 'teaser' )\r\n            ->add ( 'article' , 'ckeditor' )\r\n            ->add ( 'publish' )\r\n            ->add ( 'tool' )\r\n            ->add ( '_local' , 'choice' , array (\r\n                'choices'     => array ('fr' => 'Fr' , 'en' => 'En') ,\r\n//                        'preferred_choices' => array ('fr') ,\r\n                'empty_value' => 'Choisissez une option' ,\r\n            )\r\n            )\r\n            ->add ( 'block' )\r\n            ->add ( 'img','elfinder', array(\r\n                'instance'=>'form',\r\n                'enable'=>true,\r\n                'attr'   => [\r\n                    'class' => 'form-control'\r\n                ]))\r\n            ->add ( 'icon' );\r\n    }\r\n```\r\nand i get this error : \r\n```\r\nTypeError: $ is not a function\r\nvar CKEDITOR_BASEPATH = \"/bundles/ivoryckeditor/\";\r\n```\r\nif clic on the field img it das not give elfinder.\r\ncan you help?\r\n"},"comment":{"url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/comments/94652416","html_url":"https://github.com/helios-ag/FMElfinderBundle/issues/140#issuecomment-94652416","issue_url":"https://api.github.com/repos/helios-ag/FMElfinderBundle/issues/140","id":94652416,"user":{"login":"xorgxx","id":7679725,"avatar_url":"https://avatars.githubusercontent.com/u/7679725?v=3","gravatar_id":"","url":"https://api.github.com/users/xorgxx","html_url":"https://github.com/xorgxx","followers_url":"https://api.github.com/users/xorgxx/followers","following_url":"https://api.github.com/users/xorgxx/following{/other_user}","gists_url":"https://api.github.com/users/xorgxx/gists{/gist_id}","starred_url":"https://api.github.com/users/xorgxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorgxx/subscriptions","organizations_url":"https://api.github.com/users/xorgxx/orgs","repos_url":"https://api.github.com/users/xorgxx/repos","events_url":"https://api.github.com/users/xorgxx/events{/privacy}","received_events_url":"https://api.github.com/users/xorgxx/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T06:20:06Z","updated_at":"2015-04-21T06:20:06Z","body":"full page \r\nhttps://gist.github.com/xorgxx/56bebdafd30c152c0bbd"}}