{"action":"opened","issue":{"url":"https://api.github.com/repos/Kunstmaan/KunstmaanBundlesCMS/issues/402","labels_url":"https://api.github.com/repos/Kunstmaan/KunstmaanBundlesCMS/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/Kunstmaan/KunstmaanBundlesCMS/issues/402/comments","events_url":"https://api.github.com/repos/Kunstmaan/KunstmaanBundlesCMS/issues/402/events","html_url":"https://github.com/Kunstmaan/KunstmaanBundlesCMS/issues/402","id":74451390,"number":402,"title":"Allow custom configs for CKEditor","user":{"login":"mtnorthrop","id":800546,"avatar_url":"https://avatars.githubusercontent.com/u/800546?v=3","gravatar_id":"","url":"https://api.github.com/users/mtnorthrop","html_url":"https://github.com/mtnorthrop","followers_url":"https://api.github.com/users/mtnorthrop/followers","following_url":"https://api.github.com/users/mtnorthrop/following{/other_user}","gists_url":"https://api.github.com/users/mtnorthrop/gists{/gist_id}","starred_url":"https://api.github.com/users/mtnorthrop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtnorthrop/subscriptions","organizations_url":"https://api.github.com/users/mtnorthrop/orgs","repos_url":"https://api.github.com/users/mtnorthrop/repos","events_url":"https://api.github.com/users/mtnorthrop/events{/privacy}","received_events_url":"https://api.github.com/users/mtnorthrop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-08T18:26:15Z","updated_at":"2015-05-08T18:26:15Z","closed_at":null,"body":"Would it be possible to allow custom configs to be set for the CKEditor in the Admin bundle?\r\n\r\nIt is already possible to set a custom toolbar config by overriding `KunstmaanAdminBundle:Default:_ckeditor_configs.html.twig`, however, I'd like to be able to override the `CKEDITOR.config` object properties as well, using an external config file.\r\n\r\nThe CKEditor documentation describing how to do this is here: http://docs.ckeditor.com/#!/guide/dev_configuration\r\n\r\nMaybe this could be done in a way similar to the way the custom toolbar settings are loaded. \r\n\r\nThe `customConfig` property could be added to the in-page settings of the `CKEDITOR.replace()` call in `AdminBundle/Resources/ui/js/_rich-editor.js`, and could be assigned to a variable that is an empty string by default:\r\n\r\n```javascript\r\n\r\n        customConfig = customConfigFile || ''; // Get URL set in customConfigFile if set\r\n\r\n        // Place CK\r\n        CKEDITOR.replace(elId, {\r\n            skin: 'bootstrapck',\r\n            startupFocus: false,\r\n            height: elHeight,\r\n            bodyClass: 'CKEditor',\r\n\r\n            filebrowserBrowseUrl: fileBrowseUrl,\r\n            filebrowserWindowWidth: 970,\r\n\r\n            filebrowserImageBrowseUrl: imageBrowseUrl,\r\n            filebrowserImageBrowseLinkUrl: imageBrowseUrl,\r\n            filebrowserImageWindowWidth: 970,\r\n\r\n            filebrowserImageUploadUrl: '',\r\n\r\n            enterMode: elEnterMode,\r\n            shiftEnterMode: elShiftEnterMode,\r\n\r\n            toolbar: elToolbar,\r\n            customConfig: customConfig // Include custom config file setting\r\n        });\r\n```\r\n\r\nThis way, the user would have the option of setting the url for their custom config file by overriding the `KunstmaanAdminBundle:Default:_ckeditor_configs.html.twig` file and setting the `customConfigFile` variable there.\r\n\r\nNot only would this give users access to all the CKEditor config settings, but would also allow them to load external CKEditor plugins (something that I need for my current project).\r\n\r\nWould something like this be possible?"}}